[IMP] purchase requisition
[odoo/odoo.git] / addons / sale / sale_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4 <!--        <menuitem icon="terp-sale" id="menu_sale_root" name="Sales Management"-->
5 <!--            groups="group_sale_user"/>-->
6         <menuitem id="base.menu_sales" name="Sales" parent="base.menu_base_partner" sequence="1"/>
7
8         <menuitem id="base.menu_product" name="Products" parent="base.menu_base_partner" sequence="4"/>
9         <menuitem action="product.product_normal_action" id="product.menu_products" parent="base.menu_product" sequence="1"/>
10
11         <record id="view_shop_form" model="ir.ui.view">
12             <field name="name">sale.shop</field>
13             <field name="model">sale.shop</field>
14             <field name="type">form</field>
15             <field name="arch" type="xml">
16                 <form string="Sale Shop">
17                     <field name="name" select="1"/>
18                     <field name="warehouse_id" required="1" select="1" widget="selection"/>
19                     <separator colspan="4" string="Accounting"/>
20                     <field name="payment_default_id"/>
21                     <field domain="[('type','=','sale')]" name="pricelist_id" select="1" groups="base.group_extended"/>
22                     <field name="project_id" select="1"/>
23                 </form>
24             </field>
25         </record>
26         <record id="view_shop_tree" model="ir.ui.view">
27             <field name="name">sale.shop</field>
28             <field name="model">sale.shop</field>
29             <field name="type">tree</field>
30             <field name="arch" type="xml">
31                 <tree string="Sale Shop">
32                     <field name="name"/>
33                     <field name="warehouse_id"/>
34                     <field name="pricelist_id" groups="base.group_extended"/>
35                     <field name="project_id"/>
36                 </tree>
37             </field>
38         </record>
39
40         <record id="action_shop_form" model="ir.actions.act_window">
41             <field name="name">Shop</field>
42             <field name="type">ir.actions.act_window</field>
43             <field name="res_model">sale.shop</field>
44             <field name="view_type">form</field>
45             <field name="view_mode">tree,form</field>
46             <field name="view_id" ref="view_shop_tree"/>
47         </record>
48         <menuitem action="action_shop_form" id="menu_action_shop_form" parent="base.menu_base_config" sequence="70"/>
49
50         <record id="view_sale_order_calendar" model="ir.ui.view">
51             <field name="name">sale.order.calendar</field>
52             <field name="model">sale.order</field>
53             <field name="type">calendar</field>
54             <field name="arch" type="xml">
55                 <calendar string="Sales orders" color="state" date_start="date_order">
56                     <field name="partner_id"/>
57                     <field name="amount_total"/>
58                 </calendar>
59             </field>
60         </record>
61         <record model="ir.ui.view" id="view_sale_order_graph">
62             <field name="name">sale.order.graph</field>
63             <field name="model">sale.order</field>
64             <field name="type">graph</field>
65             <field name="arch" type="xml">
66                 <graph string="Sales orders" type="bar">
67                     <field name="partner_id"/>
68                     <field name="amount_total" operator="+"/>
69                 </graph>
70             </field>
71         </record>
72
73         <record id="view_order_tree" model="ir.ui.view">
74             <field name="name">sale.order.tree</field>
75             <field name="model">sale.order</field>
76             <field name="type">tree</field>
77             <field name="arch" type="xml">
78                 <tree string="Sales orders">
79                     <field name="date_order" string="Order date"/>
80                     <field name="name" string="Reference"/>
81                     <field name="partner_id"/>
82                     <field name="partner_shipping_id"/>
83                     <field name="user_id" />
84                     <field name="picked_rate" widget="progressbar"/>
85                     <field name="invoiced_rate" widget="progressbar"/>
86                     <field name="amount_untaxed" sum="Total Untaxed amount"/>
87                     <field name="amount_total" sum="Total amount"/>
88                     <field name="state"/>
89                 </tree>
90             </field>
91         </record>
92
93         <record id="view_order_form" model="ir.ui.view">
94             <field name="name">sale.order.form</field>
95             <field name="model">sale.order</field>
96             <field name="type">form</field>
97             <field name="arch" type="xml">
98                 <form string="Sales order">
99                     <group col="6" colspan="4">
100                         <field name="name" select="1"/>
101                         <field name="client_order_ref" select="2"/>
102                         <field name="shipped" select="2"/>
103                         <field name="shop_id" on_change="onchange_shop_id(shop_id)" select="2" widget="selection"/>
104                         <field name="date_order" select="1" string="Order date" />
105                         <field name="invoiced" select="2"/>
106                     </group>
107                     <notebook colspan="4">
108                         <page string="Sale Order">
109                             <field name="partner_id" on_change="onchange_partner_id(partner_id)" required="1" select="1"/>
110                             <field domain="[('partner_id','=',partner_id)]" name="partner_order_id"/>
111                             <field domain="[('partner_id','=',partner_id)]" name="partner_invoice_id"/>
112                             <field domain="[('partner_id','=',partner_id)]" name="partner_shipping_id"/>
113                             <field domain="[('type','=','sale')]" name="pricelist_id" groups="base.group_extended"/>
114                             <field name="project_id" select="2" 
115                                 context="{'partner_id':partner_id, 'contact_id':partner_order_id, 'pricelist_id':pricelist_id, 'default_name':name}"/>
116                             <newline/>
117                             <field colspan="4" mode="tree,form,graph" name="order_line" nolabel="1" widget="one2many_list">
118                                 <form string="Sale Order Lines">
119                                     <notebook>
120                                         <page string="Order Line">
121                                             <separator colspan="4" string="Automatic Declaration"/>
122                                             <field colspan="4"
123                                                 context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
124                                                 name="product_id"
125                                                 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'], True, parent.date_order, product_packaging, parent.fiscal_position)"
126                                                 select="1"/>
127                                             <field
128                                                 context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
129                                                 name="product_uom_qty"
130                                                 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'], False, parent.date_order, product_packaging, parent.fiscal_position, True)"
131                                                 select="1"/>
132                                             <field name="product_uom"
133                                                 on_change="product_uom_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'], False, parent.date_order)"/>
134                                             <field
135                                                 name="product_packaging"
136                                                 context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
137                                                 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'], False, parent.date_order, product_packaging, parent.fiscal_position)"
138                                                 domain="[('product_id','=',product_id)]"
139                                                 groups="base.group_extended"/>
140
141                                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
142                                             <separator colspan="4" string="Manual Description"/>
143                                             <field colspan="4" name="name" select="2"/>
144                                             <field name="price_unit" select="2"/>
145                                             <field name="discount"/>
146                                             <field name="type"/>
147                                             <field name="delay" select="2"/>
148                                             <newline/>
149                                             <field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','&lt;&gt;','purchase')]"/>
150                                             <separator colspan="4" string="States"/>
151                                             <field name="state" select="2"/>
152                                             <group col="3" colspan="2">
153                                                 <field name="invoiced" select="2"/>
154                                                 <button colspan="1"
155                                                     name="%(action_view_sale_order_line_make_invoice)d"
156                                                     states="confirmed"
157                                                     string="Make Invoice"
158                                                     type="action"
159                                                     icon="gtk-print" />
160                                             </group>
161                                         </page>
162                                         <page groups="base.group_extended" string="Extra Info">
163                                             <field groups="product.group_uos" name="product_uos_qty" on_change="uos_change(product_uos, product_uos_qty, product_id)"/>
164                                             <field groups="product.group_uos" name="product_uos"/>
165                                             <field name="th_weight"/>
166                                             <field name="address_allotment_id" select="2"/>
167                                             <separator colspan="4" string="Properties"/>
168                                             <field colspan="4" name="property_ids" nolabel="1"/>
169                                         </page>
170                                         <page string="Notes">
171                                             <field colspan="4" name="notes" nolabel="1"/>
172                                         </page>
173                                         <page string="History" groups="base.group_extended">
174                                             <separator colspan="4" string="Invoice Lines"/>
175                                             <field colspan="4" name="invoice_lines" nolabel="1"/>
176                                             <separator colspan="4" string="Stock Moves"/>
177                                             <field colspan="4" name="move_ids" nolabel="1" widget="many2many"/>
178                                         </page>
179                                     </notebook>
180                                 </form>
181                                 <tree string="Sales order lines">
182                                     <field colspan="4" name="name"/>
183                                     <field name="product_uom_qty" string="Qty"/>
184                                     <field name="product_uom" string="UoM"/>
185                                     <field name="discount"/>
186                                     <field name="price_unit"/>
187                                     <field name="price_net"/>
188                                     <field name="price_subtotal"/>
189                                 </tree>
190                             </field>
191                             <newline/>
192                             <group col="7" colspan="4">
193                                 <field name="amount_untaxed" sum="Untaxed amount"/>
194                                 <field name="amount_tax"/>
195                                 <field name="amount_total" sum="Total amount"/>
196                                 <button name="button_dummy" states="draft" string="Compute" type="object" icon="gtk-execute"/>
197                             </group>
198                             <group col="13" colspan="4">
199                                 <field name="state" select="2"/>
200                                 <button name="order_confirm" states="draft" string="Confirm Order" icon="gtk-apply"/>
201                                 <button name="invoice_recreate" states="invoice_except" string="Recreate Invoice" icon="gtk-print"/>
202                                 <button name="invoice_corrected" states="invoice_except" string="Invoice Corrected" icon="gtk-apply"/>
203                                 <button name="ship_recreate" states="shipping_except" string="Recreate Procurement" icon="gtk-ok"/>
204                                 <button name="ship_corrected" states="shipping_except" string="Procurement Corrected" icon="gtk-apply"/>
205                                 <button name="manual_invoice" states="manual" string="Create Invoice" icon="gtk-print"/>
206                                 <button name="ship_cancel" states="shipping_except" string="Cancel Order" icon="gtk-cancel"/>
207                                 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
208                                 <button name="action_cancel" states="manual,progress" string="Cancel Order" type="object" icon="gtk-cancel"/>
209                                 <button name="cancel" states="draft" string="Cancel Order" icon="gtk-cancel"/>
210                                 <button name="invoice_cancel" states="invoice_except" string="Cancel Order" icon="gtk-cancel"/>
211                             </group>
212                         </page>
213                         <page string="Other data">
214                             <group colspan="2" col="2">
215                                 <separator string="Logistic" colspan="2"/>
216                                 <field groups="base.group_extended" name="incoterm"/>
217                                 <field groups="base.group_extended" name="picking_policy" required="True"/>
218                                 <field name="order_policy" on_change="shipping_policy_change(order_policy)"/>
219                                 <field groups="base.group_extended" name="invoice_quantity" attrs="{'readonly':[('order_policy','=','prepaid'),('order_policy','=','picking')]}"/>
220                             </group>
221                             <group colspan="2" col="2">
222                                 <separator string="References" colspan="2"/>
223                                 <field name="user_id"/>
224                                 <field groups="base.group_extended" name="origin"/>
225                             </group>
226                             <group colspan="2" col="2">
227                                 <separator string="Conditions" colspan="2"/>
228                                 <field name="payment_term" widget="selection"/>
229                                 <field name="fiscal_position" groups="base.group_extended" widget="selection"/>
230                                 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
231                             </group>
232                             <group colspan="2" col="2">
233                                 <separator string="Dates" colspan="2"/>
234                                 <field name="create_date" widget="datetime"/>
235                                 <field name="date_confirm"/>
236                             </group>
237                             <separator colspan="4" string="Notes"/>
238                             <field colspan="4" name="note" nolabel="1"/>
239                         </page>
240                         <page string="History">
241                             <separator colspan="4" string="Related invoices"/>
242                             <field colspan="4" name="invoice_ids" nolabel="1"/>
243                             <field colspan="4" name="picking_ids" nolabel="1"/>
244                         </page>
245                     </notebook>
246                 </form>
247             </field>
248         </record>
249
250         <record id="view_sales_order_filter" model="ir.ui.view">
251             <field name="name">sale.order.list.select</field>
252             <field name="model">sale.order</field>
253             <field name="type">search</field>
254             <field name="arch" type="xml">
255                 <search string="Search Sales Order">
256                     <filter icon="terp-sale" string="Quotations" domain="[('state','=','draft')]"/>
257                     <filter icon="terp-sale" string="Running" domain="[('state','in',('manual','progress'))]"/>
258                     <filter icon="terp-sale" string="Sales To Invoice" domain="[('state','=','manual')]"/>
259                     <separator orientation="vertical"/>
260                     <field name="name" select="1"/>
261                     <field name="partner_id" select="1"/>
262                     <field name="user_id" select="1" widget="selection">
263                         <filter icon="terp-partner" name="my_sale" domain="[('user_id','=',uid)]" help="My Sale Orders" />
264                     </field>
265                     <field name="date_order" select="1" string="Order date" />
266                     <newline/>
267                     <group expand="1" string="Group By..." colspan="11" col="11">
268                         <filter string="Customer" icon="terp-sale" domain="[]" context="{'group_by':'partner_id'}"/>
269                         <filter string="State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/>
270                         <filter string="Order Date" icon="terp-sale" domain="[]" context="{'group_by':'date_order'}"/>
271                         <filter string="Salesman" icon="terp-sale" domain="[]" context="{'group_by':'user_id'}"/>
272                     </group>
273                </search>
274             </field>
275         </record>
276
277         <record id="action_order_form" model="ir.actions.act_window">
278             <field name="name">Sales Orders</field>
279             <field name="type">ir.actions.act_window</field>
280             <field name="res_model">sale.order</field>
281             <field name="view_type">form</field>
282             <field name="view_mode">tree,form,calendar,graph</field>
283             <field name="context">{"search_default_my_sale":1}</field>
284             <field name="search_view_id" ref="view_sales_order_filter"/>
285         </record>
286         <menuitem action="action_order_form" id="menu_sale_order" parent="base.menu_sales" sequence="3"/>
287
288         <record id="action_order_tree2" model="ir.actions.act_window">
289             <field name="name">Sales in Exception</field>
290             <field name="type">ir.actions.act_window</field>
291             <field name="res_model">sale.order</field>
292             <field name="view_type">form</field>
293             <field name="view_mode">tree,form,calendar,graph</field>
294             <field name="domain">[('state','in',('shipping_except','invoice_except'))]</field>
295             <field name="filter" eval="True"/>
296             <field name="search_view_id" ref="view_sales_order_filter"/>
297         </record>
298
299         <record id="action_order_tree4" model="ir.actions.act_window">
300             <field name="name">Sales Order in Progress</field>
301             <field name="type">ir.actions.act_window</field>
302             <field name="res_model">sale.order</field>
303             <field name="view_type">form</field>
304             <field name="view_mode">tree,form,calendar,graph</field>
305             <field name="domain">[('state','in',('progress','waiting_date','manual'))]</field>
306             <field name="search_view_id" ref="view_sales_order_filter"/>
307         </record>
308
309
310         <record id="action_order_tree5" model="ir.actions.act_window">
311             <field name="name">All Quotations</field>
312             <field name="type">ir.actions.act_window</field>
313             <field name="res_model">sale.order</field>
314             <field name="view_type">form</field>
315             <field name="view_mode">tree,form,calendar,graph</field>
316             <field name="domain">[('state','=','draft')]</field>
317             <field name="search_view_id" ref="view_sales_order_filter"/>
318         </record>
319
320         <record id="action_order_tree" model="ir.actions.act_window">
321             <field name="name">Old Quotations</field>
322             <field name="type">ir.actions.act_window</field>
323             <field name="res_model">sale.order</field>
324             <field name="view_type">form</field>
325             <field name="view_mode">tree,form,calendar,graph</field>
326             <field name="domain">[('state','=','draft'),('date_order','&lt;',time.strftime('%Y-%m-%d %H:%M:%S'))]</field>
327             <field name="filter" eval="True"/>
328             <field name="search_view_id" ref="view_sales_order_filter"/>
329         </record>
330
331         <record id="view_order_line_graph" model="ir.ui.view">
332             <field name="name">sale.order.line.graph</field>
333             <field name="model">sale.order.line</field>
334             <field name="type">graph</field>
335             <field name="arch" type="xml">
336                 <graph string="Sales order lines">
337                     <field name="product_id"/>
338                     <field name="price_subtotal" operator="+"/>
339                 </graph>
340             </field>
341         </record>
342
343         <record id="view_order_line_tree" model="ir.ui.view">
344             <field name="name">sale.order.line.tree</field>
345             <field name="model">sale.order.line</field>
346             <field name="type">tree</field>
347             <field name="arch" type="xml">
348                 <tree string="Sales order lines">
349                     <field name="order_id"/>
350                     <field name="order_partner_id"/>
351                     <field name="product_id"/>
352                     <field name="product_uom_qty" string="Qty"/>
353                     <field name="product_uom" string="UoM"/>
354                     <field name="discount"/>
355                     <field name="price_unit"/>
356                     <field name="price_net"/>
357                     <field name="price_subtotal"/>
358                     <field name="th_weight"/>
359                     <field name="state"/>
360                 </tree>
361             </field>
362         </record>
363         <record id="view_order_line_form2" model="ir.ui.view">
364             <field name="name">sale.order.line.form2</field>
365             <field name="model">sale.order.line</field>
366             <field name="type">form</field>
367             <field name="arch" type="xml">
368                 <form string="Sales Order Lines">
369                     <notebook>
370                         <page string="Order Lines">
371                             <separator colspan="4" string="Automatic Declaration"/>
372                             <field name="order_id" select="1"/>
373                             <field name="order_partner_id" readonly="1" select="1" invisible="1"/>
374                             <field name="product_uom_qty" readonly="1" select="2"/>
375                             <field name="product_uom"/>
376                             <field name="product_id" readonly="1" select="1"/>
377                             <field name="invoiced" select="2"/>
378                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
379                             <separator colspan="4" string="Manual Designation"/>
380                             <field colspan="4" name="name" select="2"/>
381                             <field name="price_unit" select="2"/>
382                             <field name="discount"/>
383                             <field name="type"/>
384                             <field name="delay" select="2"/>
385                             <field name="price_subtotal"/>
386                             <field name="th_weight"/>
387                             <field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','&lt;&gt;','purchase')]"/>
388                             <separator colspan="4" string="States"/>
389                             <field name="state" select="2"/>
390                             <group col="2" colspan="2">
391                                 <button name="button_done"
392                                         states="confirmed,exception"
393                                         string="Done" type="object"
394                                         icon="gtk-jump-to" />
395                                 <button name="button_cancel"
396                                         states="confirmed,exception"
397                                         string="Cancel" type="object"
398                                         icon="gtk-cancel" />
399                             </group>
400                         </page>
401                         <page string="Properties">
402                             <field name="property_ids" nolabel="1"/>
403                         </page>
404                         <page string="Notes">
405                             <field colspan="4" name="notes" nolabel="1"/>
406                         </page>
407                         <page string="Invoice Lines">
408                             <field colspan="4" name="invoice_lines" nolabel="1"/>
409                         </page>
410                     </notebook>
411                 </form>
412             </field>
413         </record>
414
415         <record id="view_sales_order_line_filter" model="ir.ui.view">
416             <field name="name">sale.order.line.select</field>
417             <field name="model">sale.order.line</field>
418             <field name="type">search</field>
419             <field name="arch" type="xml">
420                 <search string="Search Sales Order">
421                     <filter icon="terp-purchase" string="To Invoice" domain="[('invoiced','&lt;&gt;', 1),('state','=','done')]" separator="1"/>
422                     <separator orientation="vertical"/>
423                     <field name="order_id" select="1"/>
424                     <field name="order_partner_id" select="1"/>
425                     <field name="product_id" select="1"/>
426                     <field name="salesman_id" select="1" widget="selection">
427                         <filter icon="terp-sale" domain="[('salesman_id','=',uid)]" help="My Sale Order Lines"/>
428                         <filter icon="terp-sale" domain="[('salesman_id','child_of',[uid])]" help="My Departments Sale Order Lines"/>
429                     </field>
430                     <newline/>
431                     <group expand="context.get('report',False)" string="Group By..." colspan="9" col="8">
432                         <filter string="Product" icon="terp-sale"  domain="[]" context="{'group_by':'product_id'}"/>
433                         <filter string="Order" icon="terp-sale" domain="[]" context="{'group_by':'order_id'}"/>
434                         <filter string="State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/>
435                     </group>
436                 </search>
437             </field>
438         </record>
439
440         <record id="view_sales_order_uninvoiced_line_filter" model="ir.ui.view">
441             <field name="name">sale.order.uninvoiced.line</field>
442             <field name="model">sale.order.line</field>
443             <field name="type">search</field>
444             <field name="arch" type="xml">
445                 <search string="Search Uninvoiced Lines">
446                     <group>
447                     <filter icon="terp-purchase" string="Shipped"
448                         domain="[('state','=','done')]"
449                         separator="1" />
450                     <filter icon="terp-purchase" string="Uninvoiced" name="uninvoiced"
451                         domain="[('invoiced','&lt;&gt;', 1),('state','&lt;&gt;','draft'),('state','&lt;&gt;','cancel')]"
452                         separator="1" />
453                     <separator orientation="vertical"/>
454                     <field name="order_id" select="1"/>
455                     <field name="order_partner_id" select="1"/>
456                     <field name="product_id" select="1"/>
457                     <field name="state" select="1"/>
458                     </group>
459                     <newline />
460                     <group expand="1" string="Group By...">
461                         <filter string="Product" icon="terp-sale" domain="[]" context="{'group_by':'product_id'}"/>
462                         <filter string="Order" icon="terp-sale" domain="[]" context="{'group_by':'order_id'}"/>
463                         <filter string="State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/>
464                     </group>
465                 </search>
466             </field>
467         </record>
468
469         <record id="action_order_line_tree2" model="ir.actions.act_window">
470             <field name="name">Uninvoiced Lines</field>
471             <field name="type">ir.actions.act_window</field>
472             <field name="res_model">sale.order.line</field>
473             <field name="view_type">form</field>
474             <field name="view_mode">tree,form,graph</field>
475             <field name="context">{"search_default_uninvoiced":1}</field>
476             <field name="search_view_id" ref="view_sales_order_uninvoiced_line_filter" />
477             <field name="filter" eval="True"/>
478         </record>
479
480         <record id="action_order_line_tree3" model="ir.actions.act_window">
481             <field name="name">Uninvoiced and Delivered Lines</field>
482             <field name="type">ir.actions.act_window</field>
483             <field name="res_model">sale.order.line</field>
484             <field name="view_type">form</field>
485             <field name="view_mode">tree,form,graph</field>
486             <field name="domain">[('invoiced','&lt;&gt;', 1),('state','=','done')]</field>
487             <field name="filter" eval="True"/>
488         </record>
489
490         <act_window context="{'partner_id': active_id}" domain="[('partner_id', '=', active_id)]" id="act_res_partner_2_sale_order" name="Sales" res_model="sale.order" src_model="res.partner"/>
491
492         <act_window domain="[('product_id','=',active_id)]" id="action_order_line_product_tree" name="Product sales" res_model="sale.order.line" src_model="product.product"/>
493
494         <menuitem id="menu_invoiced" name="Invoicing" parent="base.menu_base_partner" sequence="6"/>
495         <menuitem action="action_order_line_tree2" id="menu_invoicing_sales_order_lines" parent="menu_invoiced" sequence="2"/>
496         <!-- configartion view -->
497
498         <record id="view_config_picking_policy" model="ir.ui.view">
499             <field name="name">Configure Picking Policy for Sale Order </field>
500             <field name="model">sale.config.picking_policy</field>
501             <field name="type">form</field>
502             <field name="inherit_id" ref="base.res_config_view_base"/>
503             <field name="arch" type="xml">
504               <data>
505                 <form position="attributes">
506                   <attribute name="string">Sales Configuration</attribute>
507                 </form>
508                 <group string="res_config_contents" position="replace">
509                   <label colspan="4" align="0.0"
510                          string="Set the policies selected by default when creating a new sale order."/>
511                   <separator colspan="4"
512                        string="Configure Sale Order Logistic"/>
513                   <newline/>
514                   <field name="picking_policy"/>
515                   <newline/>
516                   <field name="order_policy"/>
517                   <newline/>
518                   <field name="step"/>
519                 </group>
520                 <xpath expr='//button[@name="action_skip"]' position='replace'/>
521               </data>
522             </field>
523         </record>
524
525         <record id="action_config_picking_policy" model="ir.actions.act_window">
526             <field name="name">Configure Picking Policy for Sale Order</field>
527             <field name="type">ir.actions.act_window</field>
528             <field name="res_model">sale.config.picking_policy</field>
529             <field name="view_id" ref="view_config_picking_policy"/>
530             <field name="view_type">form</field>
531             <field name="view_mode">form</field>
532             <field name="target">new</field>
533         </record>
534
535         <!-- register configuration wizard -->
536         <record id="config_wizard_step_sale_picking_policy" model="ir.actions.todo">
537             <field name="action_id" ref="action_config_picking_policy"/>
538         </record>
539
540     </data>
541 </openerp>