[FIX] account_financial_report : fix wizard model names sent to qweb reports for vat and aged balance reports

pull/1244/head
Florian da Costa 2024-10-29 15:46:31 +01:00
parent ac9f16d085
commit f08ea65f9c
2 changed files with 4 additions and 4 deletions

View File

@ -442,8 +442,8 @@ class AgedPartnerBalanceReport(models.AbstractModel):
)._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,

View File

@ -218,8 +218,8 @@ class VATReport(models.AbstractModel):
)
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,