Skip to content

Commit

Permalink
[FIX] account_interest : Fix when searching the journal and having mo…
Browse files Browse the repository at this point in the history
…re than one receivable_account_ids

closes #588

X-original-commit: 075e271
Signed-off-by: Felipe Garcia Suez <[email protected]>
Signed-off-by: rov-adhoc <[email protected]>
  • Loading branch information
rov-adhoc committed Nov 14, 2024
1 parent 3c23cc2 commit 4cb3b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_interests/models/res_company_interest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4cb3b5f

Please sign in to comment.