forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 7
/
sale_view.xml
executable file
·67 lines (63 loc) · 2.84 KB
/
sale_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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0"?>
<openerp>
<data>
<!--record model="ir.ui.view" id="view_sale_order_tree_direct_delivery">
<field name="name">sale.order.tree.direct_delivery</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_tree" />
<field name="type">tree</field>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="has_supplier_direct_delivery" />
</field>
</field>
</record -->
<record model="ir.ui.view" id="view_order_form_sale_flow">
<field name="name">view_order_form_sale_flow</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<xpath expr="/form/sheet//field[@name='order_line']/tree/field[@name='name']" position="before">
<field name="sale_flow" on_change="onchange_sale_flow(sale_flow, product_id, context)"/>
</xpath>
<xpath expr="/form/sheet//field[@name='order_line']/form//label[@for='name']" position="before">
<group attrs="{'invisible': [('type', '=', 'make_to_stock')]}" colspan="2" cols="2">
<field name="sale_flow" on_change="onchange_sale_flow(sale_flow, product_id, context)"/>
<field name="purchase_order_line_id"/>
<field name="purchase_order_id" readonly="1"/>
<field name="purchase_order_state" readonly="1"/>
</group>
</xpath>
</field>
</record>
<!--record model="ir.ui.view" id="view_sale_order_line_form_direct_delivery2">
<field name="name">sale.order.line.form.direct_delivery2</field>
<field name="model">sale.order.line</field>
<field name="inherit_id" ref="sale.view_order_line_form2" />
<field name="type">form</field>
<field name="arch" type="xml">
<page string="Invoice Lines" position="after">
<page string="History">
<separator colspan="4" string="Supplier Direct Delivery" />
<field name="is_supplier_direct_delivery" />
<field name="is_supplier_direct_delivery_advised" />
<field name="purchase_order" readonly="1" />
<field name="purchase_order_line" readonly="1" />
<field name="purchase_order_state" readonly="1" />
</page>
</page>
</field>
</record -->
<!--record model="ir.ui.view" id="view_sale_order_line_tree_direct_delivery">
<field name="name">sale.order.line.tree.direct_delivery</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="type">form</field>
<field name="arch" type="xml">
<xpath expr="/form/notebook/page/field/tree/field[@name='price_subtotal']" position="after">
<field name="is_supplier_direct_delivery" />
</xpath>
</field>
</record -->
</data>
</openerp>