[IMP] account_financial_report: Fix VAT Report and other improvements

This commit is contained in:
Joan Sisquella
2020-05-22 17:01:17 +02:00
committed by chaule97
parent e4377eb3bb
commit 6f32057364
10 changed files with 260 additions and 195 deletions

View File

@@ -47,7 +47,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
"If partners are filtered, "
"debits and credits totals will not match the trial balance.",
)
show_analytic_tags = fields.Boolean(string="Show analytic tags")
show_analytic_tags = fields.Boolean(string="Show analytic tags",)
receivable_accounts_only = fields.Boolean()
payable_accounts_only = fields.Boolean()
partner_ids = fields.Many2many(

View File

@@ -25,6 +25,12 @@ class VATReportWizard(models.TransientModel):
default="taxtags",
)
tax_detail = fields.Boolean("Detail Taxes")
target_move = fields.Selection(
[("posted", "All Posted Entries"), ("all", "All Entries")],
string="Target Moves",
required=True,
default="posted",
)
@api.onchange("company_id")
def onchange_company_id(self):
@@ -105,6 +111,7 @@ class VATReportWizard(models.TransientModel):
"date_from": self.date_from,
"date_to": self.date_to,
"based_on": self.based_on,
"only_posted_moves": self.target_move == "posted",
"tax_detail": self.tax_detail,
}

View File

@@ -18,10 +18,11 @@
<field name="date_from" />
<field name="date_to" />
</group>
<group name="other_filters">
<field name="based_on" widget="radio" />
<field name="tax_detail" />
</group>
</group>
<group name="other_filters">
<field name="target_move" widget="radio" />
<field name="based_on" widget="radio" />
<field name="tax_detail" />
</group>
<footer>
<button