Tower: upload accounting_pdf_reports 1.0.2 (via marketplace)
This commit is contained in:
20
addons/accounting_pdf_reports/wizard/account_tax_report.py
Normal file
20
addons/accounting_pdf_reports/wizard/account_tax_report.py
Normal file
@@ -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)
|
||||||
Reference in New Issue
Block a user