mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] - Add ace-widget with python mode
This commit is contained in:
committed by
Carolina Fernandez
parent
17bb16dfd1
commit
c9ff2c0cd4
28
contract_variable_quantity/views/abstract_contract_view.xml
Normal file
28
contract_variable_quantity/views/abstract_contract_view.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="account_abstract_analytic_contract_line_view_form"
|
||||
model="ir.ui.view">
|
||||
<field name="name">Account Abstract Analytic Contract Line Form View
|
||||
</field>
|
||||
<field name="model">account.abstract.analytic.contract.line</field>
|
||||
<field name="inherit_id"
|
||||
ref="contract.account_abstract_analytic_contract_line_view_form"/>
|
||||
<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>
|
||||
Reference in New Issue
Block a user