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