[FIX] account_financial_report: replace old field company_id in account.account by company_ids
This commit is contained in:
@@ -108,7 +108,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
|
||||
)
|
||||
if self.company_id:
|
||||
self.account_ids = self.account_ids.filtered(
|
||||
lambda a: a.company_id == self.company_id
|
||||
lambda a: self.company_id in a.company_ids
|
||||
)
|
||||
|
||||
def _init_date_from(self):
|
||||
@@ -177,7 +177,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
|
||||
self.onchange_type_accounts_only()
|
||||
else:
|
||||
self.account_ids = self.account_ids.filtered(
|
||||
lambda a: a.company_id == self.company_id
|
||||
lambda a: self.company_id in a.company_ids
|
||||
)
|
||||
if self.company_id and self.cost_center_ids:
|
||||
self.cost_center_ids = self.cost_center_ids.filtered(
|
||||
@@ -195,7 +195,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
|
||||
if not self.company_id:
|
||||
return res
|
||||
else:
|
||||
res["domain"]["account_ids"] += [("company_id", "=", self.company_id.id)]
|
||||
res["domain"]["account_ids"] += [("company_ids", "in", self.company_id.ids)]
|
||||
res["domain"]["account_journal_ids"] += [
|
||||
("company_id", "=", self.company_id.id)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user