4
<menuitem name="Sales Management" icon="terp-sale" id="menu_sale_root"/>
6
<record model="ir.ui.view" id="view_shop_form">
7
<field name="name">sale.shop</field>
8
<field name="model">sale.shop</field>
9
<field name="type">form</field>
10
<field name="arch" type="xml">
11
<form string="Sale Shop">
12
<field name="name" select="1"/>
14
<separator string="Accounting" colspan="4"/>
15
<field name="pricelist_id" domain="[('type','=','sale')]" colspan="4" select="1"/>
16
<field name="project_id" colspan="4" select="1"/>
17
<field name="payment_default_id" colspan="4"/>
18
<field name="payment_account_id" colspan="4"/>
19
<separator string="Stock" colspan="4"/>
20
<field name="warehouse_id" colspan="4" select="1" required="1"/>
24
<record model="ir.actions.act_window" id="action_shop_form">
25
<field name="name">sale.shop</field>
26
<field name="type">ir.actions.act_window</field>
27
<field name="res_model">sale.shop</field>
28
<field name="view_type">form</field>
29
<field name="view_id" ref="view_shop_form"/>
31
<menuitem name="Sales Management/Configuration" groups="admin" sequence="1"/>
32
<menuitem name="Sales Management/Configuration/Shop" id="menu_action_shop_form" action="action_shop_form"/>
34
<record model="ir.ui.view" id="view_order_tree">
35
<field name="name">sale.order.tree</field>
36
<field name="model">sale.order</field>
37
<field name="type">tree</field>
38
<field name="arch" type="xml">
39
<tree string="Sales Orders">
40
<field name="date_order"/>
42
<field name="partner_id"/>
43
<field name="partner_shipping_id"/>
44
<field name="shipped"/>
45
<field name="invoiced"/>
46
<field name="amount_untaxed"/>
52
<record model="ir.ui.view" id="view_order_form">
53
<field name="name">sale.order.form</field>
54
<field name="model">sale.order</field>
55
<field name="type">form</field>
56
<field name="arch" type="xml">
57
<form string="Sales Order">
59
<page string="Sale Order">
60
<field name="name" select="1"/>
61
<group colspan="2" col="4">
62
<field name="shipped" select="1"/>
63
<field name="invoiced" select="1"/>
66
<field name="date_order" select="1"/>
67
<field name="shop_id" select="1" on_change="onchange_shop_id(shop_id)"/>
68
<field name="partner_id" select="1" on_change="onchange_partner_id(partner_id)" required="1"/>
69
<field name="partner_order_id" domain="[('partner_id','=',partner_id)]"/>
70
<field name="partner_invoice_id" domain="[('partner_id','=',partner_id)]"/>
71
<field name="partner_shipping_id" domain="[('partner_id','=',partner_id)]"/>
72
<field name="pricelist_id" domain="[('type','=','sale')]"/>
73
<field name="project_id" select="1"/>
75
<field name="order_line" widget="one2many_list" colspan="4" nolabel="1">
76
<form string="Sale Order Lines">
78
<page string="Order Line">
79
<separator string="Automatic Declaration" colspan="4"/>
80
<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)" context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom" select="1"/>
81
<field name="product_uom"/>
82
<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, 'lang' in context and context['lang'])" context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom" colspan="3" select="1"/>
84
<separator string="Manual Description" colspan="4"/>
85
<field name="name" colspan="3" select="1"/>
86
<field name="price_unit" select="1"/>
87
<field name="discount"/>
89
<field name="date_planned" select="1"/>
91
<field name="tax_id" colspan="3"/>
92
<separator string="States" colspan="4"/>
93
<field name="state" select="1"/>
94
<field name="invoiced" select="1"/>
95
</page><page string="Extra Info">
96
<field name="product_uos_qty" on_change="uos_change(product_uos, product_uos_qty, product_id)"/>
97
<field name="product_uos" />
98
<field name="product_packaging" />
99
<field name="address_allotment_id" select="1"/>
100
<separator string="Properties" colspan="4"/>
101
<field name="property_ids" colspan="4" nolabel="1"/>
102
</page><page string="Notes">
103
<field name="notes" colspan="4" nolabel="1"/>
104
</page><page string="History">
105
<separator string="Invoice Lines" colspan="4"/>
106
<field name="invoice_lines" colspan="4" nolabel="1"/>
107
<separator string="Inventory Moves" colspan="4"/>
108
<field name="move_ids" colspan="4" nolabel="1"/>
114
<group colspan="4" col="7">
115
<field name="amount_untaxed"/>
116
<field name="amount_tax"/>
117
<field name="amount_total"/>
118
<button name="button_dummy" string="Compute" states="draft" type="object"/>
120
<group colspan="4" col="13">
121
<field name="state" select="1"/>
122
<button name="order_confirm" string="Confirm Order" states="draft"/>
123
<button name="invoice_recreate" string="Recreate Invoice" states="invoice_except"/>
124
<button name="invoice_corrected" string="Invoice Corrected" states="invoice_except"/>
125
<button name="ship_recreate" string="Recreate Procurement" states="shipping_except"/>
126
<button name="ship_corrected" string="Procurement Corrected" states="shipping_except"/>
127
<button name="manual_invoice" states="manual" string="Create Invoice"/>
128
<button name="ship_cancel" string="Cancel Order" states="shipping_except"/>
129
<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
130
<button name="action_cancel" string="Cancel Order" states="manual,progress" type="object"/>
131
<button name="cancel" string="Cancel Order" states="draft"/>
132
<button name="invoice_cancel" string="Cancel Order" states="invoice_except"/>
135
<page string="Other data">
136
<field name="incoterm"/>
137
<field name="picking_policy" required="True"/>
138
<field name="user_id"/>
139
<field name="order_policy" />
140
<field name="origin"/>
141
<field name="invoice_quantity"/>
142
<field name="client_order_ref" />
143
<separator string="Notes" colspan="4"/>
144
<field name="note" colspan="4" nolabel="1"/>
145
</page><page string="History">
146
<separator string="Generated Invoices" colspan="4"/>
147
<field name="invoice_ids" colspan="4" nolabel="1"/>
148
<separator string="Generated Pickings" colspan="4"/>
149
<field name="picking_ids" colspan="4" nolabel="1"/>
155
<record model="ir.actions.act_window" id="action_order_form">
156
<field name="name">sale.order</field>
157
<field name="type">ir.actions.act_window</field>
158
<field name="res_model">sale.order</field>
159
<field name="view_type">form</field>
160
<field name="view_id" ref="view_order_form"/>
162
<menuitem name="Sales Management/Sales Order" action="action_order_form" id="menu_sale_order"/>
164
<record model="ir.actions.act_window" id="action_order_tree">
165
<field name="name">sale.order</field>
166
<field name="type">ir.actions.act_window</field>
167
<field name="res_model">sale.order</field>
168
<field name="view_type">form</field>
169
<field name="view_mode">tree,form</field>
170
<field name="domain">[('user_id','=',uid)]</field>
172
<menuitem name="Sales Management/Sales Order/Your Sales Order" id="menu_action_order_tree" action="action_order_tree"/>
174
<record model="ir.actions.act_window" id="action_order_tree2">
175
<field name="name">sale.order</field>
176
<field name="type">ir.actions.act_window</field>
177
<field name="res_model">sale.order</field>
178
<field name="view_type">form</field>
179
<field name="view_mode">tree,form</field>
180
<field name="domain">[('state','=','shipping_except')]</field>
182
<menuitem name="Sales Management/Sales Order/Sales Order in Shipping Exception" id="menu_action_order_tree2" action="action_order_tree2"/>
184
<record model="ir.actions.act_window" id="action_order_tree3">
185
<field name="name">sale.order</field>
186
<field name="type">ir.actions.act_window</field>
187
<field name="res_model">sale.order</field>
188
<field name="view_type">form</field>
189
<field name="view_mode">tree,form</field>
190
<field name="domain">[('state','=','manual')]</field>
192
<menuitem name="Sales Management/Sales Order/Sales Order waiting Invoice" id="menu_action_order_tree3" action="action_order_tree3"/>
194
<record model="ir.actions.act_window" id="action_order_tree4">
195
<field name="name">sale.order</field>
196
<field name="type">ir.actions.act_window</field>
197
<field name="res_model">sale.order</field>
198
<field name="view_type">form</field>
199
<field name="view_mode">tree,form</field>
200
<field name="domain">[('state','=','progress')]</field>
202
<menuitem name="Sales Management/Sales Order/Sales Order in Progress" id="menu_action_order_tree4" action="action_order_tree4"/>
205
<record model="ir.actions.act_window" id="action_order_tree5">
206
<field name="name">sale.order</field>
207
<field name="type">ir.actions.act_window</field>
208
<field name="res_model">sale.order</field>
209
<field name="view_type">form</field>
210
<field name="view_mode">tree,form</field>
211
<field name="domain">[('state','=','draft')]</field>
213
<menuitem name="Sales Management/Sales Order/Requests For Quotation" id="menu_action_order_tree5" action="action_order_tree5"/>
215
<record model="ir.actions.act_window" id="action_order_tree6">
216
<field name="name">sale.order</field>
217
<field name="type">ir.actions.act_window</field>
218
<field name="res_model">sale.order</field>
219
<field name="view_type">form</field>
220
<field name="view_mode">tree,form</field>
221
<field name="domain">[('state','=','invoice_except')]</field>
223
<menuitem name="Sales Management/Sales Order/Sales Order in Invoice Exception" id="menu_action_order_tree6" action="action_order_tree6"/>
227
<record model="ir.actions.act_window" id="action_order_tree7">
228
<field name="name">sale.order</field>
229
<field name="type">ir.actions.act_window</field>
230
<field name="res_model">sale.order</field>
231
<field name="view_type">form</field>
232
<field name="view_mode">tree,form</field>
233
<field name="domain">[('state','=','shipping_except'),('user_id','=',uid)]</field>
235
<menuitem name="Sales Management/Sales Order/Your Sales Order/Sales Order in Shipping Exception" id="menu_action_order_tree7" action="action_order_tree7"/>
237
<record model="ir.actions.act_window" id="action_order_tree8">
238
<field name="name">sale.order</field>
239
<field name="type">ir.actions.act_window</field>
240
<field name="res_model">sale.order</field>
241
<field name="view_type">form</field>
242
<field name="view_mode">tree,form</field>
243
<field name="domain">[('state','=','manual'),('user_id','=',uid)]</field>
245
<menuitem name="Sales Management/Sales Order/Your Sales Order/Sales Order waiting Invoice" id="menu_action_order_tree8" action="action_order_tree8"/>
247
<record model="ir.actions.act_window" id="action_order_tree9">
248
<field name="name">sale.order</field>
249
<field name="type">ir.actions.act_window</field>
250
<field name="res_model">sale.order</field>
251
<field name="view_type">form</field>
252
<field name="view_mode">tree,form</field>
253
<field name="domain">[('state','=','progress'),('user_id','=',uid)]</field>
255
<menuitem name="Sales Management/Sales Order/Your Sales Order/Sales Order in Progress" id="menu_action_order_tree9" action="action_order_tree9"/>
258
<record model="ir.actions.act_window" id="action_order_tree10">
259
<field name="name">sale.order</field>
260
<field name="type">ir.actions.act_window</field>
261
<field name="res_model">sale.order</field>
262
<field name="view_type">form</field>
263
<field name="view_mode">tree,form</field>
264
<field name="domain">[('state','=','draft'),('user_id','=',uid)]</field>
266
<menuitem name="Sales Management/Sales Order/Your Sales Order/Your Requests For Quotation" id="menu_action_order_tree10" action="action_order_tree10"/>
269
<record model="ir.ui.view" id="view_order_pos_form">
270
<field name="name">sale.order.pos</field>
271
<field name="model">sale.order</field>
272
<field name="type">form</field>
273
<field name="arch" type="xml">
274
<form string="Sales Order POS">
276
<page string="Order Line">
277
<field name="order_line" widget="one2many_list" colspan="4" nolabel="1"/>
278
<group colspan="4" col="7">
279
<field name="amount_untaxed"/>
280
<field name="amount_tax"/>
281
<field name="amount_total"/>
282
<button name="button_dummy" string="Compute" states="draft" type="object"/>
284
<field name="state" select="1"/>
285
<group colspan="2" col="3">
286
<button name="action_direct_sale" string="Direct Sale" states="draft" type="object"/>
287
<button name="cancel" string="Cancel Sale" states="draft"/>
290
<page string="Notes">
291
<field name="note" colspan="3" nolabel="1"/>
293
<page string="Advanced">
294
<separator string="Shop" colspan="4"/>
295
<field name="name" select="1"/>
296
<field name="shop_id" select="1" on_change="onchange_shop_id(shop_id)"/>
297
<field name="date_order" select="1"/>
298
<group colspan="2" col="4">
299
<field name="shipped" select="1"/>
300
<field name="invoiced" select="1"/>
302
<separator string="Order type" colspan="4"/>
303
<field name="order_policy" />
304
<field name="pricelist_id" />
305
<field name="project_id" select="1"/>
306
<separator string="Partner" colspan="4"/>
307
<field name="partner_id" select="1" on_change="onchange_partner_id(partner_id)"/>
308
<field name="partner_order_id" domain="[('partner_id','=',partner_id)]"/>
309
<field name="partner_invoice_id" domain="[('partner_id','=',partner_id)]"/>
310
<field name="partner_shipping_id" domain="[('partner_id','=',partner_id)]"/>
311
<separator string="Links" colspan="4"/>
312
<field name="invoice_ids" select="1" colspan="4"/>
313
<field name="picking_ids" colspan="4"/>
319
<record model="ir.actions.act_window" id="action_order_pos_form">
320
<field name="name">sale.order</field>
321
<field name="type">ir.actions.act_window</field>
322
<field name="res_model">sale.order</field>
323
<field name="view_type">form</field>
324
<field name="view_id" ref="view_order_pos_form"/>
326
<!-- <menuitem name="Sales Management/Order POS" action="action_order_pos_form"/> -->
328
<record model="ir.ui.view" id="view_order_line_tree">
329
<field name="name">sale.order.line.tree</field>
330
<field name="model">sale.order.line</field>
331
<field name="type">tree</field>
332
<field name="arch" type="xml">
333
<tree string="Sales Order Lines">
334
<field name="name" colspan="3"/>
335
<field name="product_id"/>
336
<field name="product_uom_qty" string="Qty"/>
337
<field name="product_uom" string="UoM"/>
338
<field name="discount"/>
339
<field name="price_unit"/>
340
<field name="date_planned"/>
341
<field name="price_net"/>
342
<field name="price_subtotal"/>
347
<record model="ir.ui.view" id="view_order_line_form2">
348
<field name="name">sale.order.line.form2</field>
349
<field name="model">sale.order.line</field>
350
<field name="type">form</field>
351
<field name="arch" type="xml">
352
<form string="Sales Order Lines">
354
<page string="Order Lines">
355
<separator string="Automatic Declaration" colspan="4"/>
356
<field name="order_id" select="1"/>
357
<field name="invoiced" select="1"/>
358
<field name="product_uom_qty" readonly="1" select="1"/>
359
<field name="product_uom" readonly="1"/>
360
<field name="product_id" readonly="1" select="1"/>
362
<separator string="Manual Designation" colspan="4"/>
363
<field name="name" colspan="3" select="1"/>
364
<field name="price_unit" select="1"/>
365
<field name="discount"/>
367
<field name="date_planned" select="1"/>
368
<field name="price_subtotal"/>
369
<field name="tax_id" colspan="3"/>
370
<separator string="States" colspan="4"/>
371
<field name="state" select="1"/>
372
<group colspan="2" col="2">
373
<button string="Done" name="button_done" states="confirmed"/>
376
</page><page string="Properties">
377
<field name="property_ids"/>
378
</page><page string="Notes">
379
<field name="notes" colspan="4" nolabel="1"/>
380
</page><page string="Invoice Lines">
381
<field name="invoice_lines" colspan="3"/>
389
<record model="ir.actions.act_window" id="action_order_line_tree1">
390
<field name="name">sale.order.line.tree</field>
391
<field name="type">ir.actions.act_window</field>
392
<field name="res_model">sale.order.line</field>
393
<field name="view_type">form</field>
394
<field name="view_id" ref="view_order_line_form2"/>
396
<menuitem name="Sales Management/Sales Order Lines" id="menu_action_order_line_tree1" action="action_order_line_tree1"/>
398
<record model="ir.actions.act_window" id="action_order_line_tree2">
399
<field name="name">sale.order.line.tree</field>
400
<field name="type">ir.actions.act_window</field>
401
<field name="res_model">sale.order.line</field>
402
<field name="view_type">form</field>
403
<field name="view_mode">tree,form</field>
404
<field name="domain">[('invoiced','<>', 1)]</field>
406
<menuitem name="Sales Management/Sales Order Lines/Uninvoiced lines" id="menu_action_order_line_tree2" action="action_order_line_tree2"/>
408
<record model="ir.actions.act_window" id="action_order_line_tree3">
409
<field name="name">sale.order.line.tree</field>
410
<field name="type">ir.actions.act_window</field>
411
<field name="res_model">sale.order.line</field>
412
<field name="view_type">form</field>
413
<field name="view_mode">tree,form</field>
414
<field name="domain">[('invoiced','<>', 1),('state','=','done')]</field>
416
<menuitem name="Sales Management/Sales Order Lines/Uninvoiced lines/Uninvoiced lines done" id="menu_action_order_line_tree3" action="action_order_line_tree3"/>