Skip to content

Commit

Permalink
[FIX] account_payment_group: method support multiple records
Browse files Browse the repository at this point in the history
Using self.field name throws singleton error. iterating in the
records solves the problem
  • Loading branch information
zaoral committed Sep 13, 2022
1 parent bbd75df commit b476242
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions account_payment_group/models/account_payment.py
Expand Up @@ -245,6 +245,7 @@ def _compute_is_internal_transfer(self):
return super()._compute_is_internal_transfer()

def _create_paired_internal_transfer_payment(self):
super(AccountPayment, self.with_context(
default_force_amount_company_currency=self.force_amount_company_currency
))._create_paired_internal_transfer_payment()
for rec in self:
super(AccountPayment, rec.with_context(
default_force_amount_company_currency=rec.force_amount_company_currency
))._create_paired_internal_transfer_payment()

0 comments on commit b476242

Please sign in to comment.