FIX variable quantity view

This commit is contained in:
angelmoya
2021-01-31 19:09:43 +01:00
parent 67fcb8addd
commit b3bf3b2a54

View File

@@ -25,6 +25,24 @@
name="attrs"
>{'invisible': [('qty_type', '!=', 'fixed')]}</attribute>
</xpath>
<xpath
expr="//field[@name='contract_line_fixed_ids']/tree/field[@name='quantity']"
position="before"
>
<field name="qty_type" />
<field
name="qty_formula_id"
attrs="{'invisible': [('qty_type', '!=', 'variable')]}"
/>
</xpath>
<xpath
expr="//field[@name='contract_line_fixed_ids']/tree/field[@name='quantity']"
position="attributes"
>
<attribute
name="attrs"
>{'invisible': [('qty_type', '!=', 'fixed')]}</attribute>
</xpath>
</field>
</record>
</odoo>