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)