forked from OCA/product-attribute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sale_order_view.xml
140 lines (139 loc) · 6.99 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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?xml version="1.0"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_order_form">
<field name="name">sale.order.form</field>
<field name="model">sale.order</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Sales order">
<notebook>
<page string="Sale Order">
<field name="name" select="1"/>
<group colspan="2" col="4">
<field name="shipped" select="2"/>
<field name="invoiced" select="2"/>
</group>
<newline/>
<field name="date_order" select="1"/>
<field name="shop_id" select="2" on_change="onchange_shop_id(shop_id)"/>
<field name="partner_id" select="1" on_change="onchange_partner_id(partner_id)" required="1"/>
<field name="partner_order_id" domain="[('partner_id','=',partner_id)]"/>
<field name="partner_invoice_id" domain="[('partner_id','=',partner_id)]"/>
<field name="partner_shipping_id" domain="[('partner_id','=',partner_id)]"/>
<field name="pricelist_id" domain="[('type','=','sale')]"/>
<field name="project_id" select="2"/>
<newline/>
<field name="order_line" widget="one2many_list" colspan="4" nolabel="1" mode="tree,graph">
<form string="Sale Order Lines">
<notebook>
<page string="Order Line">
<separator string="Automatic Declaration" colspan="4"/>
<field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, parent.fiscal_position, 'lang' in context and context['lang'], True)" context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom" colspan="4" select="1"/>
<field name="product_uom_qty" on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, parent.fiscal_position, 'lang' in context and context['lang'], False)" context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom" select="1"/>
<field name="product_uom" required="1"/>
<field name="product_uos_qty" required="1"/>
<field name="product_uos" required="1" />
<field name="prodlot_id" context="product=product_id" domain="[('product_id','=',product_id)]" required="1"/>
<field name="size_x" on_change="size_change(size_x,size_y,size_z,product_id,product_uom_qty)"/>
<field name="size_y" on_change="size_change(size_x,size_y,size_z,product_id,product_uom_qty)"/>
<field name="size_z" on_change="size_change(size_x,size_y,size_z,product_id,product_uom_qty)"/>
<field name="prodlot_ids" colspan="4">
<tree string="Lots Assignations" editable="bottom">
<field name="name"/>
<field name="lot_id" context="product=parent.product_id" domain="[('product_id','=',parent.product_id)]" required="1"/>
</tree>
</field>
<button string="Automatic Reservation" colspan="4" name="assign" type="workflow"/>
<separator string="Manual Description" colspan="4"/>
<field name="name" colspan="4" select="2"/>
<field name="price_unit" select="2"/>
<field name="discount"/>
<field name="type"/>
<field name="delay" select="2"/>
<newline/>
<field name="tax_id" colspan="4"/>
<separator string="States" colspan="4"/>
<field name="state" select="2"/>
<field name="invoiced" select="2"/>
</page>
<page string="Extra Info">
<field name="product_packaging" />
<field name="address_allotment_id" select="2"/>
<separator string="Properties" colspan="4"/>
<field name="property_ids" colspan="4" nolabel="1"/>
</page>
<page string="Notes">
<field name="notes" colspan="4" nolabel="1"/>
</page>
<page string="History">
<separator string="Invoice Lines" colspan="4"/>
<field name="invoice_lines" colspan="4" nolabel="1"/>
<separator string="Inventory Moves" colspan="4"/>
<field name="move_ids" colspan="4" nolabel="1"/>
</page>
</notebook>
</form>
<tree string="Sales order lines">
<field name="name" colspan="4"/>
<field name="product_id"/>
<field name="product_uom_qty" string="Qty"/>
<field name="product_uom" string="UoM"/>
<field name="discount"/>
<field name="price_unit"/>
<field name="price_net"/>
<field name="price_subtotal"/>
</tree>
</field>
<newline/>
<group colspan="4" col="7">
<field name="amount_untaxed" sum="Untaxed amount"/>
<field name="amount_tax"/>
<field name="amount_total" sum="Total amount"/>
<button name="button_dummy" string="Compute" states="draft" type="object"/>
</group>
<group colspan="4" col="13">
<field name="state" select="2"/>
<button name="order_confirm" string="Confirm Order" states="draft"/>
<button name="invoice_recreate" string="Recreate Invoice" states="invoice_except"/>
<button name="invoice_corrected" string="Invoice Corrected" states="invoice_except"/>
<button name="ship_recreate" string="Recreate Procurement" states="shipping_except"/>
<button name="ship_corrected" string="Procurement Corrected" states="shipping_except"/>
<button name="manual_invoice" states="manual" string="Create Invoice"/>
<button name="ship_cancel" string="Cancel Order" states="shipping_except"/>
<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
<button name="action_cancel" string="Cancel Order" states="manual,progress" type="object"/>
<button name="cancel" string="Cancel Order" states="draft"/>
<button name="invoice_cancel" string="Cancel Order" states="invoice_except"/>
</group>
</page>
<page string="Other data">
<field name="incoterm"/>
<field name="picking_policy" required="True"/>
<field name="user_id"/>
<field name="order_policy" />
<field name="origin"/>
<field name="invoice_quantity"/>
<field name="client_order_ref" />
<field name="fiscal_position" />
<separator string="Notes" colspan="4"/>
<field name="note" colspan="4" nolabel="1"/>
</page>
<page string="History">
<separator string="Related invoices" colspan="4"/>
<field name="invoice_ids" colspan="4" nolabel="1"/>
<separator string="Related packings" colspan="4"/>
<field name="picking_ids" colspan="4" nolabel="1"/>
</page>
</notebook>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="sale.action_order_form">
<field name="type">ir.actions.act_window</field>
<field name="res_model">sale.order</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_order_form"/>
</record>
</data>
</openerp>