From 22df2b54904400a7ad890b6657b294b9c1eb99e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 14 Mar 2026 10:36:13 +0100 Subject: [PATCH] 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. --- modules/account_invoice/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_invoice/invoice.py b/modules/account_invoice/invoice.py index 862beb7ed5..1bab8b40ba 100644 --- a/modules/account_invoice/invoice.py +++ b/modules/account_invoice/invoice.py @@ -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 = []