diff --git a/account_interests/models/res_company_interest.py b/account_interests/models/res_company_interest.py index f83dac04d..a2d792b13 100644 --- a/account_interests/models/res_company_interest.py +++ b/account_interests/models/res_company_interest.py @@ -159,7 +159,7 @@ def create_invoices(self, to_date, groupby=['partner_id']): ('company_id', '=', self.company_id.id)], limit=1) if self.receivable_account_ids != journal.default_account_id: - journal = self.env['account.journal'].search([('default_account_id','=',self.receivable_account_ids.id)], limit=1) or journal + journal = self.env['account.journal'].search([('default_account_id','in',self.receivable_account_ids.ids)], limit=1) or journal move_line_domain = self._get_move_line_domains(to_date) # Check if a filter is set