forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sale_order_view.xml
34 lines (33 loc) · 1.6 KB
/
sale_order_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<openerp>
<data>
<record model="ir.ui.view" id="sale_order_form_add_notes">
<field name="name">cond_text.sale.order.form</field>
<field name="model">sale.order</field>
<field name="type">form</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='note']" position="replace">
<field name="note" colspan="4"/>
<field name="note1" colspan="4" />
<field name="note2" colspan="4"/>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="sale_order_form_add_condition">
<field name="name">cond_text.sale.order.form</field>
<field name="model">sale.order</field>
<field name="type">form</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='pricelist_id']" position="after">
<separator string="" colspan="4"/>
<field name="text_condition1"
domain="[('type','=','header')]" on_change="set_condition(text_condition1, 'note1', partner_id)"/>
<field name="text_condition2"
domain="[('type','=','footer')]" on_change="set_condition(text_condition2, 'note2', partner_id)"/>
<separator string="" colspan="4"/>
</xpath>
</field>
</record>
</data>
</openerp>