Files
contract/agreement_legal_sale/views/sale_order.xml
Patrick Wilson 3c56a7777c [14.0][MIG] agreement_legal_sale (Version 12.0 to 14.0)
[MIG] Prettier

[MIG] Tests

Pre-Commit
2021-06-29 09:39:30 -06:00

24 lines
908 B
XML

<!-- Copyright 2019 Open Source Integrators
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<!-- Agreement Form View -->
<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="agreement_sale.sale_order_agreement_form_view" />
<field name="arch" type="xml">
<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" />
</field>
</field>
</record>
</odoo>