mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] move some notions from agreement_legal to agreement
we move the is_template field definition and the agreement.type model from the agreement_legal module to the agreement module. The fields are not displayed by default, unless the feature is enabled through a technical feature group, this is configurable in the agreement_sale module (because agreement in itself has no UI, and agreement_legal enables the feature by default)
This commit is contained in:
committed by
Patrick Wilson
parent
66a71323c5
commit
2c370b6208
@@ -7,12 +7,11 @@
|
||||
<record id="sale_order_agreement_form_view" model="ir.ui.view">
|
||||
<field name="name">sale.order.agreement.form.view</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="inherit_id" ref="agreement_sale.sale_order_agreement_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="client_order_ref" position="after">
|
||||
<field name="agreement_id"
|
||||
readonly="1"
|
||||
attrs="{'invisible': [('agreement_id', '=', False)]}"/>
|
||||
<field name="agreement_id" position="attributes">
|
||||
<attribute name="readonly" eval='1'/>
|
||||
<attribute name="attrs">{'invisible': [('agreement_id', '=', False)]}</attribute>
|
||||
</field>
|
||||
<field name="partner_id" position="after">
|
||||
<field name="agreement_template_id"/>
|
||||
|
||||
Reference in New Issue
Block a user