mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] contract_variable_quantity: Migration to 17.0
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user