I'm trying to hide the invoice lines where quantity is set to 0, so I edited account.invoice.form view, and tried with:
...
<page string="Invoice Lines">
<field name="invoice_line" nolabel="1" widget="one2many_list" domain="[('quantity', '>', 0)]">
<tree string="Invoice Lines" editable="bottom">
<field name="sequence" widget="handle"/>...
But this doesn't have any effect at all. No matter what I put into domain, the list remains the same.
Please advise. Thanks!