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:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user