[IMP] account_financial_report: Fix VAT Report and other improvements
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user