changeset d9feb883b56b in modules/sale_payment:6.0
details:
https://hg.tryton.org/modules/sale_payment?cmd=changeset&node=d9feb883b56b
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 fe65f7e35640 -r d9feb883b56b account.py
--- a/account.py Tue Feb 01 18:26:53 2022 +0100
+++ b/account.py Thu Oct 13 08:12:05 2022 +0200
@@ -139,7 +139,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: