mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
49 lines
1.8 KiB
XML
49 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<record id="contract_contract_form_view" model="ir.ui.view">
|
|
<field name="model">contract.contract</field>
|
|
<field name="inherit_id" ref="contract.contract_contract_form_view" />
|
|
<field name="arch" type="xml">
|
|
<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>
|
|
<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>
|