From b0327f442e815336e67a6942967d5cf5a392912f Mon Sep 17 00:00:00 2001 From: git_admin Date: Fri, 1 May 2026 14:20:39 +0000 Subject: [PATCH] Tower: upload accounting_pdf_reports 1.0.2 (via marketplace) --- .../wizard/account_report_common_journal.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 addons/accounting_pdf_reports/wizard/account_report_common_journal.py diff --git a/addons/accounting_pdf_reports/wizard/account_report_common_journal.py b/addons/accounting_pdf_reports/wizard/account_report_common_journal.py new file mode 100644 index 0000000..5e13fad --- /dev/null +++ b/addons/accounting_pdf_reports/wizard/account_report_common_journal.py @@ -0,0 +1,13 @@ +from odoo import api, fields, models + + +class AccountCommonJournalReport(models.TransientModel): + _name = 'account.common.journal.report' + _description = 'Common Journal Report' + _inherit = "account.common.report" + + amount_currency = fields.Boolean('With Currency', help="Print Report with the currency column if the currency differs from the company currency.") + + def pre_print_report(self, data): + data['form'].update({'amount_currency': self.amount_currency}) + return data