[IMP] account_financial_report: Refactor
TT38721
This commit is contained in:
committed by
chaule97
parent
4f8823b290
commit
9807b68953
@@ -77,8 +77,9 @@ class GeneralLedgerReportWizard(models.TransientModel):
|
||||
comodel_name="account.account",
|
||||
help="Ending account in a range",
|
||||
)
|
||||
show_partner_details = fields.Boolean(
|
||||
default=True,
|
||||
grouped_by = fields.Selection(
|
||||
selection=[("none", "None"), ("partners", "Partners")],
|
||||
default="partners",
|
||||
)
|
||||
show_cost_center = fields.Boolean(
|
||||
string="Show Analytic Account",
|
||||
@@ -298,7 +299,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,
|
||||
"grouped_by": self.grouped_by,
|
||||
"cost_center_ids": self.cost_center_ids.ids,
|
||||
"show_cost_center": self.show_cost_center,
|
||||
"analytic_tag_ids": self.analytic_tag_ids.ids,
|
||||
|
||||
@@ -22,11 +22,11 @@
|
||||
<field name="date_from" />
|
||||
<field name="date_to" />
|
||||
<field name="fy_start_date" invisible="1" />
|
||||
<field name="target_move" widget="radio" />
|
||||
</group>
|
||||
<group name="other_filters">
|
||||
<field name="target_move" widget="radio" />
|
||||
<field name="grouped_by" />
|
||||
<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