[FIX] Missing company domain

pull/653/head
Iván Todorovich 2020-02-02 15:11:47 +01:00
parent 38aa71fe9d
commit 131f9dc162
1 changed files with 1 additions and 0 deletions

View File

@ -187,6 +187,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
def _onchange_account_type_ids(self):
if self.account_type_ids:
self.account_ids = self.env['account.account'].search([
('company_id', '=', self.company_id.id),
('user_type_id', 'in', self.account_type_ids.ids)])
else:
self.account_ids = None