changeset 671ef12b368d in modules/sale_payment:6.2 details: https://hg.tryton.org/modules/sale_payment?cmd=changeset&node=671ef12b368d 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 8c12b032ed29 -r 671ef12b368d account.py --- a/account.py Tue Feb 01 18:22:45 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: