changeset ee7663824563 in modules/sale_payment:6.4
details:
https://hg.tryton.org/modules/sale_payment?cmd=changeset&node=ee7663824563
description:
Prevent error when payment has no account attribute
issue11780
review433581003
(grafted from 3d6541cd565795727707e19ca9e182b4537b22cb)
diffstat:
account.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 1dc19965a5bc -r ee7663824563 account.py
--- a/account.py Mon May 02 17:38:51 2022 +0200
+++ b/account.py Thu Oct 13 08:12:05 2022 +0200
@@ -123,7 +123,7 @@
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: