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.
This commit is contained in:
Cédric Krier
2026-03-14 10:36:13 +01:00
parent 7dac232ad3
commit 22df2b5490
+1 -1
View File
@@ -1587,7 +1587,7 @@ class Invoice(
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 = []