From f08ea65f9ce3eab1eb66435ee931218a281e15c5 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Tue, 29 Oct 2024 15:46:31 +0100 Subject: [PATCH] [FIX] account_financial_report : fix wizard model names sent to qweb reports for vat and aged balance reports --- account_financial_report/report/aged_partner_balance.py | 4 ++-- account_financial_report/report/vat_report.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/account_financial_report/report/aged_partner_balance.py b/account_financial_report/report/aged_partner_balance.py index 6ddb4e610bc..f508d19c496 100644 --- a/account_financial_report/report/aged_partner_balance.py +++ b/account_financial_report/report/aged_partner_balance.py @@ -442,8 +442,8 @@ def _get_report_values(self, docids, data): )._calculate_percent(aged_partner_data) return { "doc_ids": [wizard_id], - "doc_model": "open.items.report.wizard", - "docs": self.env["open.items.report.wizard"].browse(wizard_id), + "doc_model": "aged.partner.balance.report.wizard", + "docs": self.env["aged.partner.balance.report.wizard"].browse(wizard_id), "company_name": company.display_name, "currency_name": company.currency_id.name, "date_at": date_at, diff --git a/account_financial_report/report/vat_report.py b/account_financial_report/report/vat_report.py index 27b575cde6c..dc1cbd8923e 100644 --- a/account_financial_report/report/vat_report.py +++ b/account_financial_report/report/vat_report.py @@ -218,8 +218,8 @@ def _get_report_values(self, docids, data): ) return { "doc_ids": [wizard_id], - "doc_model": "open.items.report.wizard", - "docs": self.env["open.items.report.wizard"].browse(wizard_id), + "doc_model": "vat.report.wizard", + "docs": self.env["vat.report.wizard"].browse(wizard_id), "company_name": company.display_name, "currency_name": company.currency_id.name, "date_from": date_from,