summaryrefslogtreecommitdiff
path: root/addons/account/wizard/account_report_common_journal.py
blob: c00de454b768a4d3cb2c9457682e06165caef543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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