details: https://code.tryton.org/tryton/commit/f8597177e8ea
branch: default
user: Cédric Krier <[email protected]>
date: Mon Sep 21 10:39:12 2026 +0200
description:
Distinct readonly and editable states for SEPA mandate identification
diffstat:
modules/account_payment_sepa/payment.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 18df93505315 -r f8597177e8ea modules/account_payment_sepa/payment.py
--- a/modules/account_payment_sepa/payment.py Mon Sep 21 10:19:36 2026 +0200
+++ b/modules/account_payment_sepa/payment.py Mon Sep 21 10:39:12 2026 +0200
@@ -582,7 +582,10 @@
])
identification = fields.Char('Identification', size=35,
states={
- 'readonly': Eval('identification_readonly', True),
+ 'readonly': (
+ (Eval('id', -1) >= 0)
+ & Eval('identification')),
+ 'editable': ~Eval('identification_readonly', True),
'required': Eval('state') == 'validated',
})
identification_readonly = fields.Function(fields.Boolean(