Prevent error when payment has no account attribute
issue11780 review433581003
This commit is contained in:
+1
-1
@@ -123,7 +123,7 @@ class Invoice(metaclass=PoolMeta):
|
||||
continue
|
||||
if payment.party != line.party:
|
||||
continue
|
||||
if (getattr(payment, 'account')
|
||||
if (getattr(payment, 'account', None)
|
||||
and payment.account != line.account):
|
||||
continue
|
||||
if payment.amount <= payment_amount:
|
||||
|
||||
Reference in New Issue
Block a user