[12.0][REF] - Contract Variable quantity: split from analytic accoun

This commit is contained in:
sbejaoui
2019-09-30 11:23:35 +02:00
committed by Carlos Roca
parent caf7976d6c
commit af5433dcf2
83 changed files with 6773 additions and 4628 deletions

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="contract_line_form_view" model="ir.ui.view">
<field name="name">contract.line.tree (in contract_variable_quantity)</field>
<field name="model">contract.line</field>
<field name="inherit_id"
ref="contract.contract_line_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='quantity']" position="before">
<field name="qty_type"/>
</xpath>
<xpath expr="//field[@name='quantity']" position="after">
<field name="qty_formula_id"
attrs="{'required': [('qty_type', '=', 'variable')], 'invisible': [('qty_type', '!=', 'variable')]}"
/>
</xpath>
<xpath expr="//field[@name='quantity']" position="attributes">
<attribute name="attrs">{'required': [('qty_type', '=', 'fixed')], 'invisible': [('qty_type', '!=', 'fixed')]}</attribute>
</xpath>
</field>
</record>
</odoo>