mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract: add section and notes in contract line
This commit is contained in:
committed by
Víctor Martínez
parent
395b919274
commit
f6c4c9b003
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Variable quantity in contract recurrent invoicing',
|
'name': 'Variable quantity in contract recurrent invoicing',
|
||||||
'version': '12.0.2.1.2',
|
'version': '12.0.3.0.0',
|
||||||
'category': 'Contract Management',
|
'category': 'Contract Management',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'author': "Tecnativa,"
|
'author': "Tecnativa,"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<field name="model">contract.abstract.contract.line</field>
|
<field name="model">contract.abstract.contract.line</field>
|
||||||
<field name="inherit_id" ref="contract.contract_abstract_contract_line_form_view"/>
|
<field name="inherit_id" ref="contract.contract_abstract_contract_line_form_view"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//field[@name='quantity']" position="before">
|
<xpath expr="//label[@for='quantity']" position="before">
|
||||||
<field name="qty_type"/>
|
<field name="qty_type"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//field[@name='quantity']" position="after">
|
<xpath expr="//field[@name='quantity']" position="after">
|
||||||
|
|||||||
@@ -8,6 +8,16 @@
|
|||||||
<xpath expr="//field[@name='code']" position="after">
|
<xpath expr="//field[@name='code']" position="after">
|
||||||
<field name="skip_zero_qty"/>
|
<field name="skip_zero_qty"/>
|
||||||
</xpath>
|
</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>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user