flectra/addons/account/wizard/account_report_partner_ledger.py
2018-01-16 02:34:37 -08:00

19 lines
777 B
Python

# -*- coding: utf-8 -*-
from flectra import fields, models, _
from flectra.exceptions import UserError
class AccountPartnerLedger(models.TransientModel):
_inherit = "account.common.partner.report"
_name = "account.report.partner.ledger"
_description = "Account Partner Ledger"
amount_currency = fields.Boolean("With Currency", help="It adds the currency column on report if the currency differs from the company currency.")
reconciled = fields.Boolean('Reconciled Entries')
def _print_report(self, data):
data = self.pre_print_report(data)
data['form'].update({'reconciled': self.reconciled, 'amount_currency': self.amount_currency})
return self.env.ref('account.action_report_partnerledger').report_action(self, data=data)