This might be silly but i don't have idea.
While we go to Accounting -> Customers -> Customer Invoices(model: account.invoice) there is a field 'Total'(amount_total).
I have added a boolean field in account.voucher.
'test': fields.boolean('Test'),
Now in wizard(Pay Invoice) which opens on click of button 'Register payment'. I want to make this field visible or unvisible based on value of 'Total'. If the value we fill in 'Paid Amount'(amount) is less than 'Total' then 'test' field should be visible else invisible.
How can i make it possible?
Thanx in advance.