From dbe0ea924cc0c6c0f53da37fefb7c9b525c69f45 Mon Sep 17 00:00:00 2001 From: git_admin Date: Fri, 1 May 2026 14:20:43 +0000 Subject: [PATCH] Tower: upload accounting_pdf_reports 1.0.2 (via marketplace) --- .../wizard/account_partner_ledger.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 addons/accounting_pdf_reports/wizard/account_partner_ledger.py diff --git a/addons/accounting_pdf_reports/wizard/account_partner_ledger.py b/addons/accounting_pdf_reports/wizard/account_partner_ledger.py new file mode 100644 index 0000000..1629d18 --- /dev/null +++ b/addons/accounting_pdf_reports/wizard/account_partner_ledger.py @@ -0,0 +1,24 @@ +from odoo import fields, models, api, _ + + +class AccountPartnerLedger(models.TransientModel): + _name = "account.report.partner.ledger" + _inherit = "account.common.partner.report" + _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 _get_report_data(self, data): + data = self.pre_print_report(data) + data['form'].update({'reconciled': self.reconciled, + 'amount_currency': self.amount_currency}) + return data + + def _print_report(self, data): + data = self._get_report_data(data) + return self.env.ref('accounting_pdf_reports.action_report_partnerledger').with_context(landscape=True).\ + report_action(self, data=data)