diff options
Diffstat (limited to 'addons/account/wizard/account_report_common_journal.py')
| -rw-r--r-- | addons/account/wizard/account_report_common_journal.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/account/wizard/account_report_common_journal.py b/addons/account/wizard/account_report_common_journal.py new file mode 100644 index 00000000..c00de454 --- /dev/null +++ b/addons/account/wizard/account_report_common_journal.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- + +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 |
