[IMP] contract: add section and notes in contract line

This commit is contained in:
Ernesto Tejeda
2020-03-17 17:27:28 -04:00
committed by Pedro M. Baeza
parent f86bb0de30
commit 9291305c48
16 changed files with 274 additions and 67 deletions

View File

@@ -7,7 +7,7 @@
<field name="model">contract.abstract.contract.line</field>
<field name="inherit_id" ref="contract.contract_abstract_contract_line_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='quantity']" position="before">
<xpath expr="//label[@for='quantity']" position="before">
<field name="qty_type"/>
</xpath>
<xpath expr="//field[@name='quantity']" position="after">

View File

@@ -8,6 +8,16 @@
<xpath expr="//field[@name='code']" position="after">
<field name="skip_zero_qty"/>
</xpath>
<xpath expr="//field[@name='contract_line_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_ids']/tree/field[@name='quantity']" position="attributes">
<attribute name="attrs">{'invisible': [('qty_type', '!=', 'fixed')]}</attribute>
</xpath>
</field>
</record>