[IMP] account_financial_report: Refactor

TT38721
This commit is contained in:
Víctor Martínez
2022-09-14 18:25:46 +02:00
committed by chaule97
parent 4f8823b290
commit 9807b68953
6 changed files with 319 additions and 350 deletions

View File

@@ -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,