mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
FIX variable quantity view
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Variable quantity in contract recurrent invoicing",
|
"name": "Variable quantity in contract recurrent invoicing",
|
||||||
"version": "13.0.1.1.0",
|
"version": "13.0.1.2.0",
|
||||||
"category": "Contract Management",
|
"category": "Contract Management",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"author": "Tecnativa," "Odoo Community Association (OCA)",
|
"author": "Tecnativa," "Odoo Community Association (OCA)",
|
||||||
|
|||||||
@@ -25,6 +25,24 @@
|
|||||||
name="attrs"
|
name="attrs"
|
||||||
>{'invisible': [('qty_type', '!=', 'fixed')]}</attribute>
|
>{'invisible': [('qty_type', '!=', 'fixed')]}</attribute>
|
||||||
</xpath>
|
</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>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user