From 0d832f42f2fa9683acf0810e7ded6afa54bfc959 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 3773f7ca5634..ed425f167c70 100644 --- a/account_financial_report/report/aged_partner_balance.py +++ b/account_financial_report/report/aged_partner_balance.py @@ -457,8 +457,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 44ced4185914..d5f1840de940 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_to": data["date_to"],