FIX variable quantity view

This commit is contained in:
angelmoya
2021-01-31 19:09:43 +01:00
committed by Carolina Fernandez
parent a7e6481dde
commit 5c0c07ecb6
2 changed files with 19 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
{
"name": "Variable quantity in contract recurrent invoicing",
"version": "13.0.1.1.0",
"version": "13.0.1.2.0",
"category": "Contract Management",
"license": "AGPL-3",
"author": "Tecnativa," "Odoo Community Association (OCA)",

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>