[IMP] account_financial_report: multiple fixes and improvements
This commit is contained in:
committed by
chaule97
parent
cbaabca8ae
commit
e4377eb3bb
@@ -20,6 +20,7 @@ class AgedPartnerBalanceWizard(models.TransientModel):
|
||||
string="Company",
|
||||
)
|
||||
date_at = fields.Date(required=True, default=fields.Date.context_today)
|
||||
date_from = fields.Date(string="Date From")
|
||||
target_move = fields.Selection(
|
||||
[("posted", "All Posted Entries"), ("all", "All Entries")],
|
||||
string="Target Moves",
|
||||
@@ -152,6 +153,7 @@ class AgedPartnerBalanceWizard(models.TransientModel):
|
||||
return {
|
||||
"wizard_id": self.id,
|
||||
"date_at": self.date_at,
|
||||
"date_from": self.date_from or False,
|
||||
"only_posted_moves": self.target_move == "posted",
|
||||
"company_id": self.company_id.id,
|
||||
"account_ids": self.account_ids.ids,
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<group name="filters">
|
||||
<group name="date_range">
|
||||
<field name="date_at" />
|
||||
<field name="date_from" />
|
||||
</group>
|
||||
<group name="other_filters">
|
||||
<field name="target_move" widget="radio" />
|
||||
|
||||
@@ -85,6 +85,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
|
||||
string="Account Code To",
|
||||
help="Ending account in a range",
|
||||
)
|
||||
show_partner_details = fields.Boolean(string="Show Partner Details", default=True,)
|
||||
|
||||
@api.onchange("account_code_from", "account_code_to")
|
||||
def on_change_account_range(self):
|
||||
@@ -300,6 +301,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
|
||||
"company_id": self.company_id.id,
|
||||
"account_ids": self.account_ids.ids,
|
||||
"partner_ids": self.partner_ids.ids,
|
||||
"show_partner_details": self.show_partner_details,
|
||||
"cost_center_ids": self.cost_center_ids.ids,
|
||||
"analytic_tag_ids": self.analytic_tag_ids.ids,
|
||||
"journal_ids": self.account_journal_ids.ids,
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
<group name="other_filters">
|
||||
<field name="target_move" widget="radio" />
|
||||
<field name="centralize" />
|
||||
<field name="show_partner_details" />
|
||||
<field name="hide_account_at_0" />
|
||||
<field name="foreign_currency" />
|
||||
<field name="show_analytic_tags" />
|
||||
|
||||
Reference in New Issue
Block a user