[FIX] account_financial_report : fix wizard model names sent to qweb reports for vat and aged balance reports
parent
ac9f16d085
commit
f08ea65f9c
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue