details: https://code.tryton.org/tryton/commit/1a20ecbcccdd
branch: default
user: Cédric Krier <[email protected]>
date: Sat Mar 14 10:36:13 2026 +0100
description:
Use integer to set invisible attribute on payment means of invoice
The attribute must be an integer according to the RNG schema and not a
string.
diffstat:
modules/account_invoice/invoice.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 6cbd5ee8bd57 -r 1a20ecbcccdd modules/account_invoice/invoice.py
--- a/modules/account_invoice/invoice.py Sat Mar 14 09:58:22 2026 +0100
+++ b/modules/account_invoice/invoice.py Sat Mar 14 10:36:13 2026 +0100
@@ -1587,7 +1587,7 @@
PaymentMean = pool.get('account.invoice.payment.mean')
if not PaymentMean.get_instruments():
payment_means = [
- ('/form//field[@name="payment_means"]', 'invisible', '1'),
+ ('/form//field[@name="payment_means"]', 'invisible', 1),
]
else:
payment_means = []