|
@ -1,20 +1,20 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<odoo> |
|
|
<odoo> |
|
|
|
|
|
|
|
|
<record id="account_analytic_contract_view_form" model="ir.ui.view"> |
|
|
|
|
|
|
|
|
<record id="contract_template_form_view" model="ir.ui.view"> |
|
|
<field name="name">Contract Template Variable Qty</field> |
|
|
<field name="name">Contract Template Variable Qty</field> |
|
|
<field name="model">account.analytic.contract</field> |
|
|
|
|
|
<field name="inherit_id" ref="contract.account_analytic_contract_view_form"/> |
|
|
|
|
|
|
|
|
<field name="model">contract.template</field> |
|
|
|
|
|
<field name="inherit_id" ref="contract.contract_template_form_view"/> |
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<xpath expr="//field[@name='recurring_invoice_line_ids']//field[@name='quantity']" position="before"> |
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='contract_line_ids']//field[@name='quantity']" position="before"> |
|
|
<field name="qty_type"/> |
|
|
<field name="qty_type"/> |
|
|
</xpath> |
|
|
</xpath> |
|
|
<xpath expr="//field[@name='recurring_invoice_line_ids']//field[@name='quantity']" position="after"> |
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='contract_line_ids']//field[@name='quantity']" position="after"> |
|
|
<field name="qty_formula_id" |
|
|
<field name="qty_formula_id" |
|
|
attrs="{'required': [('qty_type', '=', 'variable')], 'invisible': [('qty_type', '!=', 'variable')]}" |
|
|
attrs="{'required': [('qty_type', '=', 'variable')], 'invisible': [('qty_type', '!=', 'variable')]}" |
|
|
/> |
|
|
/> |
|
|
</xpath> |
|
|
</xpath> |
|
|
<xpath expr="//field[@name='recurring_invoice_line_ids']//field[@name='quantity']" position="attributes"> |
|
|
|
|
|
|
|
|
<xpath expr="//field[@name='contract_line_ids']//field[@name='quantity']" position="attributes"> |
|
|
<attribute name="attrs">{'required': [('qty_type', '=', 'fixed')], 'invisible': [('qty_type', '!=', 'fixed')]}</attribute> |
|
|
<attribute name="attrs">{'required': [('qty_type', '=', 'fixed')], 'invisible': [('qty_type', '!=', 'fixed')]}</attribute> |
|
|
</xpath> |
|
|
</xpath> |
|
|
</field> |
|
|
</field> |