[FIX] revert revision 5007 (for opw 57602): caused a crash (bool object has not attri...
[odoo/odoo.git] / addons / purchase / purchase_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4        <menuitem icon="terp-purchase" id="base.menu_purchase_root" name="Purchases" sequence="3"
5            groups="group_purchase_manager,group_purchase_user"
6            web_icon="images/purchases.png"
7            web_icon_hover="images/purchases-hover.png"/>
8        <menuitem id="menu_procurement_management" name="Purchase Management"
9             parent="base.menu_purchase_root" sequence="1" />
10
11         <menuitem id="menu_purchase_config_purchase" name="Configuration"
12             groups="group_purchase_manager"
13             parent="base.menu_purchase_root" sequence="100"/>
14
15         <menuitem 
16             id="menu_purchase_config_pricelist" name="Pricelists"
17             parent="menu_purchase_config_purchase" sequence="50"/>
18
19         <menuitem
20             action="product.product_pricelist_action" id="menu_product_pricelist_action_purhase"
21             parent="menu_purchase_config_pricelist" sequence="20"/>
22
23         <menuitem
24             action="product.product_pricelist_action2" id="menu_product_pricelist_action2_purchase"
25             parent="menu_purchase_config_pricelist" sequence="10"/>
26
27         <menuitem
28             action="product.product_pricelist_type_action" id="menu_purchase_product_pricelist_type"
29             parent="menu_purchase_config_pricelist" sequence="2"
30             groups="base.group_extended"/>
31
32         <menuitem 
33             id="menu_product_in_config_purchase" name="Product"
34             parent="menu_purchase_config_purchase" sequence="30"/>
35
36         <menuitem
37             action="product.product_category_action_form" id="menu_product_category_config_purchase"
38             parent="purchase.menu_product_in_config_purchase" sequence="10"/>
39           
40         <menuitem 
41             id="menu_purchase_unit_measure_purchase" name="Units of Measure"
42             parent="purchase.menu_product_in_config_purchase"  sequence="20"/>
43
44         <menuitem
45              action="product.product_uom_categ_form_action" id="menu_purchase_uom_categ_form_action"
46              parent="menu_purchase_unit_measure_purchase" sequence="30"/>
47              
48         <menuitem
49               action="product.product_uom_form_action" id="menu_purchase_uom_form_action"
50               parent="menu_purchase_unit_measure_purchase" sequence="30"/>
51
52
53         <!--supplier addresses action-->
54         <record id="action_supplier_address_form" model="ir.actions.act_window">
55             <field name="name">Addresses</field>
56             <field name="type">ir.actions.act_window</field>
57             <field name="res_model">res.partner.address</field>
58             <field name="view_type">form</field>
59             <field name="context">{"search_default_supplier":1}</field>
60             <field name="search_view_id" ref="base.view_res_partner_address_filter"/>
61             <field name="help">Access your supplier records and maintain a good relationship with your suppliers. You can track all your interactions with them through the History tab: emails, orders, meetings, etc.</field>
62         </record>
63         <record id="action_supplier_address_form_view1" model="ir.actions.act_window.view">
64             <field eval="10" name="sequence"/>
65             <field name="view_mode">tree</field>
66             <field name="view_id" ref="base.view_partner_address_tree"/>
67             <field name="act_window_id" ref="action_supplier_address_form"/>
68         </record>
69         <record id="action_supplier_address_form_view2" model="ir.actions.act_window.view">
70             <field eval="20" name="sequence"/>
71             <field name="view_mode">form</field>
72             <field name="view_id" ref="base.view_partner_address_form1"/>
73             <field name="act_window_id" ref="action_supplier_address_form"/>
74         </record>
75
76      <!--supplier menu-->
77       <menuitem id="base.menu_procurement_management_supplier" name="Address Book"
78             parent="base.menu_purchase_root" sequence="3"/>
79       <menuitem id="base.menu_procurement_management_supplier_name" name="Suppliers"
80             parent="base.menu_procurement_management_supplier"
81             action="base.action_partner_supplier_form" sequence="1"/>
82
83           <!--Inventory control-->
84       <menuitem id="menu_procurement_management_inventory" name="Receive Products"
85             parent="base.menu_purchase_root" sequence="4"/>
86       <menuitem action="stock.action_picking_tree4" id="menu_action_picking_tree4" parent="menu_procurement_management_inventory"
87             name="Incoming Shipments" sequence="9"
88             groups="base.group_extended"/>
89       <menuitem action="stock.action_reception_picking_move" id="menu_action_picking_tree_in_move"
90             parent="menu_procurement_management_inventory" sequence="11"/>
91
92      <!--Invoice control-->
93      <menuitem id="menu_procurement_management_invoice" name="Invoice Control"
94           parent="base.menu_purchase_root" sequence="6"/>
95
96     <record id="action_invoice_pending" model="ir.actions.act_window">
97         <field name="res_model">account.invoice</field>
98         <field name="view_type">form</field>
99         <field name="view_mode">tree,form,calendar,graph</field>
100         <field eval="False" name="view_id"/>
101         <field name="domain">[('type','=','in_invoice')]</field>
102         <field name="context">{'type':'in_invoice', 'journal_type': 'purchase', 'search_default_draft': 1}</field>
103         <field name="search_view_id" ref="account.view_account_invoice_filter"/>
104             <field name="help">Use this menu to control the invoices to be received from your supplier. OpenERP pregenerates draft invoices from your purchase orders or receptions, according to your settings. Once you receive a supplier invoice, you can match it with the draft invoice and validate it.</field>
105     </record>
106
107      <menuitem name="Supplier Invoices to Receive"
108           id="menu_procurement_management_pending_invoice"
109           action="action_invoice_pending"
110           parent="menu_procurement_management_invoice"
111           sequence="13"/>
112
113       <!--product menu-->
114       <menuitem id="menu_procurement_management_product" name="Products"
115           parent="base.menu_purchase_root" sequence="8"/>
116
117       <menuitem name="Products by Category" id="menu_product_by_category_purchase_form" action="product.product_category_action"
118            parent="menu_procurement_management_product" sequence="10"/>
119
120       <menuitem name="Products" id="menu_procurement_partner_contact_form" action="product.product_normal_action_puchased"
121           parent="menu_procurement_management_product"/>
122
123        <record model="ir.ui.view" id="purchase_order_calendar">
124             <field name="name">purchase.order.calendar</field>
125             <field name="model">purchase.order</field>
126             <field name="type">calendar</field>
127             <field name="priority" eval="2"/>
128             <field name="arch" type="xml">
129                 <calendar string="Calendar View" date_start="minimum_planned_date" color="partner_id">
130                     <field name="name"/>
131                     <field name="amount_total"/>
132                     <field name="partner_id"/>
133                 </calendar>
134             </field>
135         </record>
136         <record model="ir.ui.view" id="purchase_order_graph">
137             <field name="name">purchase.order.graph</field>
138             <field name="model">purchase.order</field>
139             <field name="type">graph</field>
140             <field name="arch" type="xml">
141                 <graph string="Purchase Order" type="bar">
142                     <field name="partner_id"/>
143                     <field name="amount_total" operator="+"/>
144                 </graph>
145             </field>
146         </record>
147
148         <record id="purchase_order_form" model="ir.ui.view">
149             <field name="name">purchase.order.form</field>
150             <field name="model">purchase.order</field>
151             <field name="type">form</field>
152             <field name="arch" type="xml">
153                 <form string="Purchase Order">
154                     <group col="6" colspan="4">
155                         <field name="name"/>
156                         <field name="date_order"/>
157                         <field name="invoiced"/>
158                         <newline/>
159                         <field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection"/>
160                         <field name="partner_ref"/>
161                         <field name="shipped"/>
162                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
163                     </group>
164                     <notebook colspan="4">
165                         <page string="Purchase Order">
166                             <field name="partner_id" on_change="onchange_partner_id(partner_id)" context="{'search_default_supplier':1}" />
167                             <field name="partner_address_id"/>
168                             <field domain="[('type','=','purchase')]" name="pricelist_id" groups="base.group_extended"/>
169                             <field name="origin" groups="base.group_extended"/>
170                             <newline/>
171                             <field colspan="4" name="order_line" nolabel="1" mode="tree,form">
172                                 <tree string="Purchase Order Lines">
173                                     <field name="date_planned"/>
174                                     <field name="name"/>
175                                     <field name="product_qty"/>
176                                     <field name="product_uom"/>
177                                     <field name="price_unit"/>
178                                     <field name="price_subtotal"/>
179                                 </tree>
180                                 <!-- default form view -->
181                             </field>
182                             <group col="7" colspan="4">
183                                 <field name="amount_untaxed" sum="Untaxed amount"/>
184                                 <field name="amount_tax"/>
185                                 <field name="amount_total" sum="Total amount"/>
186                                 <button name="button_dummy" states="draft" string="Compute" type="object" icon="gtk-execute"/>
187                             </group>
188                             <group col="11" colspan="4">
189                                 <field name="state" readonly="1"/>
190                                 <button name="purchase_cancel" states="draft,confirmed,wait_auth" string="Cancel" icon="gtk-cancel"/>
191                                 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
192                                 <button name="action_cancel" states="approved,except_picking,except_invoice,wait" string="Cancel Purchase Order" type="object" icon="gtk-cancel"/>
193                                 <button name="picking_ok" states="except_picking" string="Manually Corrected" icon="gtk-convert"/>
194                                 <button name="invoice_ok" states="except_invoice" string="Manually Corrected" icon="gtk-convert"/>
195                                 <button name="purchase_confirm" states="draft" string="Convert to Purchase Order" icon="gtk-go-forward"/>
196                                 <button name="purchase_appbuyer" states="wait_auth" string="Approve Purchase" icon="gtk-ok"/>
197                                 <button name="purchase_approve" states="confirmed" string="Approved" icon="gtk-go-forward"/>
198                                 <button name="%(report_purchase_order)d" string="Print" states="approved" type="action" icon="gtk-print"/>
199                             </group>
200                         </page>
201                         <page string="Delivery &amp; Invoicing" groups="base.group_extended">
202                             <group colspan="2" col="2">
203                                 <separator string="Delivery" colspan="2"/>
204                                 <field name="dest_address_id" on_change="onchange_dest_address_id(dest_address_id)"/>
205                                 <field name="minimum_planned_date"/>
206                                 <field name="location_id"/>
207                             </group>
208                             <group colspan="2" col="2">
209                                 <separator string="Invoice Control" colspan="2"/>
210                                 <field name="invoice_method"/>
211                                 <field name="fiscal_position" widget="selection"/>
212                             </group>
213                             <newline/>
214                             <separator string="Purchase Control" colspan="4"/>
215                             <field name="validator"/>
216                             <field name="date_approve"/>
217                                 <separator string="Invoices" colspan="4"/>
218                                 <newline/>
219                                 <field name="invoice_ids" groups="base.group_extended" nolabel="1" colspan="4" context="{'type':'in_invoice', 'journal_type': 'purchase'}"/>
220                         </page>
221                         <page string="Notes">
222                             <field colspan="4" name="notes" nolabel="1"/>
223                         </page>
224                     </notebook>
225                 </form>
226             </field>
227         </record>
228
229        <record id="view_purchase_order_filter" model="ir.ui.view">
230             <field name="name">purchase.order.list.select</field>
231             <field name="model">purchase.order</field>
232             <field name="type">search</field>
233             <field name="arch" type="xml">
234                 <search string="Search Purchase Order">
235                  <group col='10' colspan='4'>
236                     <filter icon="terp-document-new" name="draft" string="Quotations" domain="[('state','=','draft')]" separator="1" help="Purchase order which are in draft state"/>
237                     <filter icon="terp-camera_test" name="confirmed" string="To Approve" domain="[('state','in',('wait','confirmed'))]" separator="1" help="Purchase order to be approved"/>
238                     <filter icon="terp-check" name="approved" string="Approved" domain="[('state','in',('approved','done'))]" separator="1" help="Approved purchase order"/>
239                     <separator orientation="vertical"/>
240                     <filter icon="terp-emblem-important" name="exception" string="Exception" domain="[('state','in',('except_invoice','except_picking'))]" separator="1" help="Purchase order which are in the exception state"/>
241                     <separator orientation="vertical"/>
242                     <filter icon="terp-gtk-go-back-rtl" string="Not Invoiced" domain="[('invoice_ids','=', False)]" separator="1" help="Purchase orders that include lines not invoiced." groups="base.group_extended"/>
243                     <separator orientation="vertical"/>
244                     <field name="name" select="1" string="Reference"/>
245                     <field name="partner_id" select="1"/>
246                     <field name="product_id" select="1"/>
247                     <field name="create_uid" select="1"/>
248                 </group>
249                 <newline/>
250                   <group expand="0" string="Group By..." colspan="4" col="10" groups="base.group_extended">
251                     <filter string="Supplier" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
252                      <separator orientation="vertical"/>
253                     <filter string="Origin" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
254                     <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
255                      <separator orientation="vertical"/>
256                     <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_order'}"/>
257                     <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'minimum_planned_date'}"/>
258
259                 </group>
260               </search>
261             </field>
262         </record>
263         <record id="purchase_order_tree" model="ir.ui.view">
264             <field name="name">purchase.order.tree</field>
265             <field name="model">purchase.order</field>
266             <field name="type">tree</field>
267             <field name="arch" type="xml">
268                 <tree colors="grey:state=='cancel';blue:state in ('wait','confirmed');red:state in ('except_invoice','except_picking')" string="Purchase Order">
269                     <field name="name" string="Reference"/>
270                     <field name="date_order" string="Order Date"/>
271                     <field name="partner_id"/>
272                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
273                     <field name="location_id"/>
274                     <field name="minimum_planned_date"/>
275                     <field name="origin"/>
276                     <field name="invoiced_rate" widget="progressbar"/>
277                     <field name="shipped_rate" widget="progressbar"/>
278                     <field name="amount_untaxed" sum="Total Untaxed amount"/>
279                     <field name="amount_total" sum="Total amount"/>
280                     <field name="state"/>
281                 </tree>
282             </field>
283         </record>
284
285         <record id="purchase_rfq" model="ir.actions.act_window">
286             <field name="name">Requests for Quotation</field>
287             <field name="type">ir.actions.act_window</field>
288             <field name="res_model">purchase.order</field>
289             <field name="view_type">form</field>
290             <field name="context">{'search_default_draft': 1}</field>
291             <field name="view_mode">tree,form,graph,calendar</field>
292             <field name="search_view_id" ref="view_purchase_order_filter"/>
293             <field name="help">You can create a request for quotation when you want to buy products to a supplier but the purchase is not confirmed yet. Use also this menu to review requests for quotation created automatically based on your logistic rules (minimum stock, MTO, etc). You can convert the request for quotation into a purchase order once the order is confirmed. If you use the extended interface (from user's preferences), you can select the way to control your supplier invoices: based on the order, based on the receptions or manual encoding.</field>
294         </record>
295         <menuitem action="purchase_rfq" id="menu_purchase_rfq"
296             parent="menu_procurement_management"
297             sequence="6"/>
298
299         <record id="purchase_form_action" model="ir.actions.act_window">
300             <field name="name">Purchase Orders</field>
301             <field name="type">ir.actions.act_window</field>
302             <field name="res_model">purchase.order</field>
303             <field name="view_mode">tree,form,graph,calendar</field>
304             <field name="context">{'search_default_approved': 1,'search_default_create_uid':uid}</field>
305             <field name="search_view_id" ref="view_purchase_order_filter"/>
306             <field name="help">Use this menu to search within your purchase orders by references, supplier, products, etc. For each purchase order, you can track the products received, and control the supplier invoices.</field>
307         </record>
308         <menuitem action="purchase_form_action" id="menu_purchase_form_action" parent="menu_procurement_management" />
309
310
311         <record id="purchase_order_line_form" model="ir.ui.view">
312             <field name="name">purchase.order.line.form</field>
313             <field name="model">purchase.order.line</field>
314             <field name="type">form</field>
315             <field name="arch" type="xml">
316                 <form string="Purchase Order Line">
317                     <notebook colspan="4">
318                         <page string="Order Line">
319                             <field name="product_id" colspan="4" context="partner_id=parent.partner_id,quantity=product_qty,pricelist=parent.pricelist_id,uom=product_uom,warehouse=parent.warehouse_id" on_change="product_id_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes)"/>
320                             <field name="product_qty" context="partner_id=parent.partner_id,quantity=product_qty,pricelist=parent.pricelist_id,uom=product_uom,warehouse=parent.warehouse_id" on_change="product_id_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id,parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes)"/>
321                             <field name="product_uom" on_change="product_uom_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes)"/>
322                             <field colspan="4" name="name"/>
323                             <field name="date_planned" widget="date"/>
324                             <field name="price_unit"/>
325                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
326                             <field name="account_analytic_id" colspan="4" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]" />
327                             <group colspan="4" col="4" groups="base.group_extended">
328                                 <separator colspan="4" string="Taxes"/>
329                                 <field colspan="4" nolabel="1" name="taxes_id"
330                                     domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/>
331                             </group>
332                         </page>
333                         <page string="Invoicing" groups="base.group_extended">
334                             <separator colspan="4" string="Manual Invoices"/>
335                             <field name="invoiced"/>
336                             <newline/>
337                             <field colspan="4" name="invoice_lines" nolabel="1" widget="many2many"/>
338                         </page>
339                            <page string="Notes">
340                             <field colspan="4" name="notes" nolabel="1"/>
341                         </page>
342                         <page string="History" groups="base.group_extended">
343                                <separator colspan="4" string="Stock Moves"/>
344                                <field colspan="4" name="move_ids" nolabel="1" widget="many2many"/>
345                         </page>
346                     </notebook>
347                 </form>
348             </field>
349         </record>
350
351         <record id="purchase_order_line_tree" model="ir.ui.view">
352             <field name="name">purchase.order.line.tree</field>
353             <field name="model">purchase.order.line</field>
354             <field name="type">tree</field>
355             <field name="arch" type="xml">
356                 <tree string="Purchase Order Lines">
357                     <field name="order_id"/>
358                     <field name="name"/>
359                     <field name="partner_id" string="Supplier" />
360                     <field name="product_id"/>
361                     <field name="price_unit"/>
362                     <field name="product_qty"/>
363                     <field name="product_uom"/>
364                     <field name="price_subtotal"/>
365                     <field name="date_planned"  widget="date" width="135"/>
366
367
368
369                     <field name="state" invisible="1"/>
370                     <field name="invoiced" invisible="1"/>
371                 </tree>
372             </field>
373         </record>
374         <record id="purchase_order_line_form2" model="ir.ui.view">
375             <field name="name">purchase.order.line.form2</field>
376             <field name="model">purchase.order.line</field>
377             <field name="type">form</field>
378             <field name="priority" eval="20"/>
379             <field name="arch" type="xml">
380                 <form string="Purchase Order Line">
381                     <notebook colspan="4">
382                         <page string="Order Line">
383                                <separator colspan="4" string="General Information"/>
384                              <field name="order_id"/>
385                             <field name="product_id" readonly="1" />
386                             <field name="product_qty" readonly="1" />
387                             <field name="product_uom" readonly="1"/>
388                             <field colspan="4" name="name"/>
389                             <field name="date_planned" widget="date"  readonly="1"/>
390                             <field name="price_unit"/>
391                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
392                             <field name="account_analytic_id" colspan="4" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]"/>
393                             <group colspan="4" col="4" groups="base.group_extended">
394                                 <separator colspan="4" string="Taxes"/>
395                                 <field colspan="4" nolabel="1" name="taxes_id"
396                                     domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/>
397                             </group>
398                         </page>
399                         <page string="Invoicing" groups="base.group_extended">
400                             <separator colspan="4" string="Manual Invoices"/>
401                             <field name="invoiced"/>
402                             <newline/>
403                             <field colspan="4" name="invoice_lines" nolabel="1" widget="many2many"/>
404                         </page>
405                          <page string="Notes">
406                             <field colspan="4" name="notes" nolabel="1"/>
407                         </page>
408                         <page string="History" groups="base.group_extended">
409                                <separator colspan="4" string="Stock Moves"/>
410                                <field colspan="4" name="move_ids" nolabel="1" widget="many2many"/>
411                         </page>
412                     </notebook>
413                 </form>
414             </field>
415         </record>
416           <record id="purchase_order_line_search" model="ir.ui.view">
417             <field name="name">purchase.order.line.search</field>
418             <field name="model">purchase.order.line</field>
419             <field name="type">search</field>
420             <field name="arch" type="xml">
421                 <search string="Search Purchase Order">
422                         <group>
423                         <field name="order_id"/>
424                         <field name="product_id"/>
425                         <field name="partner_id"  string="Supplier"/>
426                         </group>
427                         <newline/>
428                         <group expand="0" string="Group By...">
429                         <filter string="Supplier" icon="terp-partner" domain="[]" context="{'group_by' : 'partner_id'}" />
430                         <separator orientation="vertical"/>
431                         <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by' : 'product_id'}" />
432                         <filter icon="terp-gtk-jump-to-rtl" string="Order Reference" domain="[]" context="{'group_by' :'order_id'}"/>
433                         <separator orientation="vertical"/>
434                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by' : 'state'}" />
435                         </group>
436                </search>
437             </field>
438         </record>
439
440         <act_window
441             context="{'search_default_partner_id': [active_id]}"
442             id="act_res_partner_2_purchase_order"
443             name="Purchase Orders"
444             groups="purchase.group_purchase_user"
445             res_model="purchase.order"
446             src_model="res.partner"/>
447
448         <act_window
449             context="{'search_default_product_id': [active_id]}"
450             id="action_purchase_line_product_tree"
451             name="Purchases"
452             res_model="purchase.order.line"
453             src_model="product.product"
454             groups="purchase.group_purchase_user"/>
455
456
457         <record id="purchase_line_form_action2" model="ir.actions.act_window">
458             <field name="name">Purchase Lines Not Invoiced</field>
459             <field name="type">ir.actions.act_window</field>
460             <field name="res_model">purchase.order.line</field>
461             <field name="domain">[('order_id.invoice_method','&lt;&gt;','picking'), ('state','in',('confirmed','done')), ('invoiced', '=', False)]</field>
462             <field name="view_type">form</field>
463             <field name="view_mode">tree,form</field>
464             <field name="search_view_id" ref="purchase_order_line_search"/>
465             <field name="help">If you set the invoicing control on a purchase order as "Manual", you can track here all the purchase order lines for which you have not received the supplier invoice yet. Once you are ready to receive a supplier invoice, you can generate a draft supplier invoice based on the lines from this menu.</field>
466         </record>
467         <record id="purchase_line_form_action_tree2" model="ir.actions.act_window.view">
468             <field eval="1" name="sequence"/>
469             <field name="view_mode">tree</field>
470             <field name="view_id" ref="purchase_order_line_tree"/>
471             <field name="act_window_id" ref="purchase_line_form_action2"/>
472         </record>
473         <record id="purchase_line_form_action_form2" model="ir.actions.act_window.view">
474             <field eval="2" name="sequence"/>
475             <field name="view_mode">form</field>
476             <field name="view_id" ref="purchase_order_line_form2"/>
477             <field name="act_window_id" ref="purchase_line_form_action2"/>
478         </record>
479         <menuitem
480             action="purchase_line_form_action2"
481             id="menu_purchase_line_order_draft"
482             groups="base.group_extended"
483             parent="menu_procurement_management_invoice"
484             sequence="72"/>
485
486         <!--
487             Procurements
488         -->
489
490         <record id="view_procurement_form_inherit" model="ir.ui.view">
491             <field name="name">procurement.order.form.inherit</field>
492             <field name="model">procurement.order</field>
493             <field name="inherit_id" ref="procurement.procurement_form_view"/>
494             <field name="type">form</field>
495             <field name="arch" type="xml">
496                 <xpath expr="/form/notebook/page/field[@name='close_move']" position="before">
497                     <field name="purchase_id"/>
498                 </xpath>
499             </field>
500         </record>
501
502     </data>
503 </openerp>