From 6e032ba798842235a5888d09aac77ec2010afcfb Mon Sep 17 00:00:00 2001 From: git_admin Date: Fri, 1 May 2026 14:20:41 +0000 Subject: [PATCH] Tower: upload accounting_pdf_reports 1.0.2 (via marketplace) --- .../wizard/account_tax_report.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 addons/accounting_pdf_reports/wizard/account_tax_report.py diff --git a/addons/accounting_pdf_reports/wizard/account_tax_report.py b/addons/accounting_pdf_reports/wizard/account_tax_report.py new file mode 100644 index 0000000..67a5243 --- /dev/null +++ b/addons/accounting_pdf_reports/wizard/account_tax_report.py @@ -0,0 +1,20 @@ +from odoo import models, api, fields +from datetime import date + + +class AccountTaxReport(models.TransientModel): + _name = 'account.tax.report.wizard' + _inherit = "account.common.report" + _description = 'Tax Report' + + date_from = fields.Date( + string='Date From', required=True, + default=lambda self: fields.Date.to_string(date.today().replace(day=1)) + ) + date_to = fields.Date( + string='Date To', required=True, + default=lambda self: fields.Date.to_string(date.today()) + ) + + def _print_report(self, data): + return self.env.ref('accounting_pdf_reports.action_report_account_tax').report_action(self, data=data)