[MIG] contract_variable_quantity: Migration to 17.0

This commit is contained in:
Juanjo
2024-07-22 15:58:13 +02:00
parent 9af4922f35
commit 42457f5a3b
11 changed files with 27 additions and 38 deletions

View File

@@ -14,13 +14,13 @@
<xpath expr="//field[@name='quantity']" position="after">
<field
name="qty_formula_id"
attrs="{'required': [('qty_type', '=', 'variable')], 'invisible': [('qty_type', '!=', 'variable')]}"
required="qty_type == 'variable'"
invisible="qty_type != 'variable'"
/>
</xpath>
<xpath expr="//field[@name='quantity']" position="attributes">
<attribute name="attrs">{'required': [('qty_type', '=',
'fixed')], 'invisible': [('qty_type', '!=', 'fixed')]}
</attribute>
<attribute name="required">"qty_type == 'fixed'"</attribute>
<attribute name="invisible">"qty_type != 'fixed'"</attribute>
</xpath>
</field>
</record>