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:
committed by
Víctor Martínez
parent
434a056cc3
commit
1a57bcfc92
@@ -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)",
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user