Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
30
sale_order_note_template/views/sale_views.xml
Executable file
30
sale_order_note_template/views/sale_views.xml
Executable file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="view_order_form_terms_template">
|
||||
<field name="name">sale_order_note_templatesale.order.form</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//group[@name='note_group']/group/field[@name='note']"
|
||||
position="before"
|
||||
>
|
||||
<field
|
||||
name="terms_template_id"
|
||||
placeholder="Terms and conditions template"
|
||||
nolabel="1"
|
||||
colspan="4"
|
||||
/>
|
||||
<group name="terms_group" string="Terms and Conditions">
|
||||
<field
|
||||
name="terms_template_id"
|
||||
placeholder="Terms and conditions template"
|
||||
nolabel="1"
|
||||
colspan="4"
|
||||
readonly="state != 'draft'"
|
||||
/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user