2018-01-16 06:58:15 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
from flectra import api, fields, models
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
class AccountCommonJournalReport(models.TransientModel):
|
|
|
|
_name = 'account.common.journal.report'
|
|
|
|
_description = 'Account 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.")
|
|
|
|
|
|
|
|
@api.multi
|
|
|
|
def pre_print_report(self, data):
|
|
|
|
data['form'].update({'amount_currency': self.amount_currency})
|
|
|
|
return data
|