Tower: upload accounting_pdf_reports 1.0.2 (via marketplace)

This commit is contained in:
2026-05-01 14:20:39 +00:00
parent fbd39e10d6
commit b0327f442e

View File

@@ -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