[MERGE] move menu 'Campain', and create 'Partner Categories' in 'Purchases'
[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         <menuitem
53             id="menu_purchase_partner_cat" name="Address Book"
54             parent="menu_purchase_config_purchase"/>
55
56         <menuitem
57             action="base.action_partner_category_form" id="menu_partner_categories_in_form" name="Partner Categories"
58             parent="purchase.menu_purchase_partner_cat"/>
59
60
61         <!--supplier addresses action-->
62         <record id="action_supplier_address_form" model="ir.actions.act_window">
63             <field name="name">Addresses</field>
64             <field name="type">ir.actions.act_window</field>
65             <field name="res_model">res.partner.address</field>
66             <field name="view_type">form</field>
67             <field name="context">{"search_default_supplier":1}</field>
68             <field name="search_view_id" ref="base.view_res_partner_address_filter"/>
69             <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>
70         </record>
71         <record id="action_supplier_address_form_view1" model="ir.actions.act_window.view">
72             <field eval="10" name="sequence"/>
73             <field name="view_mode">tree</field>
74             <field name="view_id" ref="base.view_partner_address_tree"/>
75             <field name="act_window_id" ref="action_supplier_address_form"/>
76         </record>
77         <record id="action_supplier_address_form_view2" model="ir.actions.act_window.view">
78             <field eval="20" name="sequence"/>
79             <field name="view_mode">form</field>
80             <field name="view_id" ref="base.view_partner_address_form1"/>
81             <field name="act_window_id" ref="action_supplier_address_form"/>
82         </record>
83
84      <!--supplier menu-->
85       <menuitem id="base.menu_procurement_management_supplier" name="Address Book"
86             parent="base.menu_purchase_root" sequence="3"/>
87       <menuitem id="base.menu_procurement_management_supplier_name" name="Suppliers"
88             parent="base.menu_procurement_management_supplier"
89             action="base.action_partner_supplier_form" sequence="1"/>
90
91           <!--Inventory control-->
92       <menuitem id="menu_procurement_management_inventory" name="Receive Products"
93             parent="base.menu_purchase_root" sequence="4"/>
94       <menuitem action="stock.action_picking_tree4" id="menu_action_picking_tree4" parent="menu_procurement_management_inventory"
95             name="Incoming Shipments" sequence="9"
96             groups="base.group_extended"/>
97       <menuitem action="stock.action_reception_picking_move" id="menu_action_picking_tree_in_move"
98             parent="menu_procurement_management_inventory" sequence="11"/>
99
100      <!--Invoice control-->
101      <menuitem id="menu_procurement_management_invoice" name="Invoice Control"
102           parent="base.menu_purchase_root" sequence="6"/>
103
104     <record id="action_invoice_pending" model="ir.actions.act_window">
105         <field name="res_model">account.invoice</field>
106         <field name="view_type">form</field>
107         <field name="view_mode">tree,form,calendar,graph</field>
108         <field eval="False" name="view_id"/>
109         <field name="domain">[('type','=','in_invoice')]</field>
110         <field name="context">{'type':'in_invoice', 'journal_type': 'purchase', 'search_default_draft': 1}</field>
111         <field name="search_view_id" ref="account.view_account_invoice_filter"/>
112             <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>
113     </record>
114
115      <menuitem name="Supplier Invoices to Receive"
116           id="menu_procurement_management_pending_invoice"
117           action="action_invoice_pending"
118           parent="menu_procurement_management_invoice"
119           sequence="13"/>
120
121       <!--product menu-->
122       <menuitem id="menu_procurement_management_product" name="Products"
123           parent="base.menu_purchase_root" sequence="8"/>
124
125       <menuitem name="Products by Category" id="menu_product_by_category_purchase_form" action="product.product_category_action"
126            parent="menu_procurement_management_product" sequence="10"/>
127
128       <menuitem name="Products" id="menu_procurement_partner_contact_form" action="product.product_normal_action_puchased"
129           parent="menu_procurement_management_product"/>
130
131        <record model="ir.ui.view" id="purchase_order_calendar">
132             <field name="name">purchase.order.calendar</field>
133             <field name="model">purchase.order</field>
134             <field name="type">calendar</field>
135             <field name="priority" eval="2"/>
136             <field name="arch" type="xml">
137                 <calendar string="Calendar View" date_start="minimum_planned_date" color="partner_id">
138                     <field name="name"/>
139                     <field name="amount_total"/>
140                     <field name="partner_id"/>
141                 </calendar>
142             </field>
143         </record>
144         <record model="ir.ui.view" id="purchase_order_graph">
145             <field name="name">purchase.order.graph</field>
146             <field name="model">purchase.order</field>
147             <field name="type">graph</field>
148             <field name="arch" type="xml">
149                 <graph string="Purchase Order" type="bar">
150                     <field name="partner_id"/>
151                     <field name="amount_total" operator="+"/>
152                 </graph>
153             </field>
154         </record>
155
156         <record id="purchase_order_form" model="ir.ui.view">
157             <field name="name">purchase.order.form</field>
158             <field name="model">purchase.order</field>
159             <field name="type">form</field>
160             <field name="arch" type="xml">
161                 <form string="Purchase Order">
162                     <group col="6" colspan="4">
163                         <field name="name"/>
164                         <field name="date_order"/>
165                         <field name="invoiced"/>
166                         <newline/>
167                         <field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection"/>
168                         <field name="partner_ref"/>
169                         <field name="shipped"/>
170                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
171                     </group>
172                     <notebook colspan="4">
173                         <page string="Purchase Order">
174                             <field name="partner_id" on_change="onchange_partner_id(partner_id)" context="{'search_default_supplier':1}" />
175                             <field name="partner_address_id"/>
176                             <field domain="[('type','=','purchase')]" name="pricelist_id" groups="base.group_extended"/>
177                             <field name="origin" groups="base.group_extended"/>
178                             <newline/>
179                             <field colspan="4" name="order_line" nolabel="1" mode="tree,form">
180                                 <tree string="Purchase Order Lines">
181                                     <field name="date_planned"/>
182                                     <field name="name"/>
183                                     <field name="product_qty"/>
184                                     <field name="product_uom"/>
185                                     <field name="price_unit"/>
186                                     <field name="price_subtotal"/>
187                                 </tree>
188                                 <!-- default form view -->
189                             </field>
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="11" colspan="4">
197                                 <field name="state" readonly="1"/>
198                                 <button name="purchase_cancel" states="draft,confirmed,wait_auth" string="Cancel" icon="gtk-cancel"/>
199                                 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
200                                 <button name="action_cancel" states="approved,except_picking,except_invoice,wait" string="Cancel Purchase Order" type="object" icon="gtk-cancel"/>
201                                 <button name="picking_ok" states="except_picking" string="Manually Corrected" icon="gtk-convert"/>
202                                 <button name="invoice_ok" states="except_invoice" string="Manually Corrected" icon="gtk-convert"/>
203                                 <button name="purchase_confirm" states="draft" string="Convert to Purchase Order" icon="gtk-go-forward"/>
204                                 <button name="purchase_appbuyer" states="wait_auth" string="Approve Purchase" icon="gtk-ok"/>
205                                 <button name="purchase_approve" states="confirmed" string="Approved" icon="gtk-go-forward"/>
206                                 <button name="%(report_purchase_order)d" string="Print" states="approved" type="action" icon="gtk-print"/>
207                             </group>
208                         </page>
209                         <page string="Delivery &amp; Invoicing" groups="base.group_extended">
210                             <group colspan="2" col="2">
211                                 <separator string="Delivery" colspan="2"/>
212                                 <field name="dest_address_id" on_change="onchange_dest_address_id(dest_address_id)"/>
213                                 <field name="minimum_planned_date"/>
214                                 <field name="location_id"/>
215                             </group>
216                             <group colspan="2" col="2">
217                                 <separator string="Invoice Control" colspan="2"/>
218                                 <field name="invoice_method"/>
219                                 <field name="fiscal_position" widget="selection"/>
220                             </group>
221                             <newline/>
222                             <separator string="Purchase Control" colspan="4"/>
223                             <field name="validator"/>
224                             <field name="date_approve"/>
225                             <separator string="Invoices" colspan="4"/>
226                             <newline/>
227                             <field name="invoice_ids" groups="base.group_extended" nolabel="1" colspan="4" context="{'type':'in_invoice', 'journal_type':'purchase'}"/>
228                         </page>
229                         <page string="Notes">
230                             <field colspan="4" name="notes" nolabel="1"/>
231                         </page>
232                     </notebook>
233                 </form>
234             </field>
235         </record>
236
237        <record id="view_purchase_order_filter" model="ir.ui.view">
238             <field name="name">purchase.order.list.select</field>
239             <field name="model">purchase.order</field>
240             <field name="type">search</field>
241             <field name="arch" type="xml">
242                 <search string="Search Purchase Order">
243                  <group col='10' colspan='4'>
244                     <filter icon="terp-document-new" name="draft" string="Quotations" domain="[('state','=','draft')]" separator="1" help="Purchase order which are in draft state"/>
245                     <filter icon="terp-camera_test" name="confirmed" string="To Approve" domain="[('state','in',('wait','confirmed'))]" separator="1" help="Purchase order to be approved"/>
246                     <filter icon="terp-check" name="approved" string="Approved" domain="[('state','in',('approved','done'))]" separator="1" help="Approved purchase order"/>
247                     <separator orientation="vertical"/>
248                     <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"/>
249                     <separator orientation="vertical"/>
250                     <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"/>
251                     <separator orientation="vertical"/>
252                     <field name="name" select="1" string="Reference"/>
253                     <field name="partner_id" select="1"/>
254                     <field name="product_id" select="1"/>
255                     <field name="create_uid" select="1"/>
256                 </group>
257                 <newline/>
258                   <group expand="0" string="Group By..." colspan="4" col="10" groups="base.group_extended">
259                     <filter string="Supplier" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
260                      <separator orientation="vertical"/>
261                     <filter string="Origin" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
262                     <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
263                      <separator orientation="vertical"/>
264                     <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_order'}"/>
265                     <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'minimum_planned_date'}"/>
266
267                 </group>
268               </search>
269             </field>
270         </record>
271         <record id="purchase_order_tree" model="ir.ui.view">
272             <field name="name">purchase.order.tree</field>
273             <field name="model">purchase.order</field>
274             <field name="type">tree</field>
275             <field name="arch" type="xml">
276                 <tree colors="grey:state=='cancel';blue:state in ('wait','confirmed');red:state in ('except_invoice','except_picking')" string="Purchase Order">
277                     <field name="name" string="Reference"/>
278                     <field name="date_order" string="Order Date"/>
279                     <field name="partner_id"/>
280                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
281                     <field name="location_id"/>
282                     <field name="minimum_planned_date"/>
283                     <field name="origin"/>
284                     <field name="invoiced_rate" widget="progressbar"/>
285                     <field name="shipped_rate" widget="progressbar"/>
286                     <field name="amount_untaxed" sum="Total Untaxed amount"/>
287                     <field name="amount_total" sum="Total amount"/>
288                     <field name="state"/>
289                 </tree>
290             </field>
291         </record>
292
293         <record id="purchase_rfq" model="ir.actions.act_window">
294             <field name="name">Requests for Quotation</field>
295             <field name="type">ir.actions.act_window</field>
296             <field name="res_model">purchase.order</field>
297             <field name="view_type">form</field>
298             <field name="context">{'search_default_draft': 1}</field>
299             <field name="view_mode">tree,form,graph,calendar</field>
300             <field name="search_view_id" ref="view_purchase_order_filter"/>
301             <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>
302         </record>
303         <menuitem action="purchase_rfq" id="menu_purchase_rfq"
304             parent="menu_procurement_management"
305             sequence="6"/>
306
307         <record id="purchase_form_action" model="ir.actions.act_window">
308             <field name="name">Purchase Orders</field>
309             <field name="type">ir.actions.act_window</field>
310             <field name="res_model">purchase.order</field>
311             <field name="view_mode">tree,form,graph,calendar</field>
312             <field name="context">{'search_default_approved': 1,'search_default_create_uid':uid}</field>
313             <field name="search_view_id" ref="view_purchase_order_filter"/>
314             <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>
315         </record>
316         <menuitem action="purchase_form_action" id="menu_purchase_form_action" parent="menu_procurement_management" />
317
318
319         <record id="purchase_order_line_form" model="ir.ui.view">
320             <field name="name">purchase.order.line.form</field>
321             <field name="model">purchase.order.line</field>
322             <field name="type">form</field>
323             <field name="arch" type="xml">
324                 <form string="Purchase Order Line">
325                     <notebook colspan="4">
326                         <page string="Order Line">
327                             <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)"/>
328                             <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)"/>
329                             <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)"/>
330                             <field colspan="4" name="name"/>
331                             <field name="date_planned" widget="date"/>
332                             <field name="price_unit"/>
333                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
334                             <field name="account_analytic_id" colspan="4" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]" />
335                             <group colspan="4" col="4" groups="base.group_extended">
336                                 <separator colspan="4" string="Taxes"/>
337                                 <field colspan="4" nolabel="1" name="taxes_id"
338                                     domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/>
339                             </group>
340                         </page>
341                         <page string="Invoicing" groups="base.group_extended">
342                             <separator colspan="4" string="Manual Invoices"/>
343                             <field name="invoiced"/>
344                             <newline/>
345                             <field colspan="4" name="invoice_lines" nolabel="1" widget="many2many"/>
346                         </page>
347                            <page string="Notes">
348                             <field colspan="4" name="notes" nolabel="1"/>
349                         </page>
350                         <page string="History" groups="base.group_extended">
351                                <separator colspan="4" string="Stock Moves"/>
352                                <field colspan="4" name="move_ids" nolabel="1" widget="many2many"/>
353                         </page>
354                     </notebook>
355                 </form>
356             </field>
357         </record>
358
359         <record id="purchase_order_line_tree" model="ir.ui.view">
360             <field name="name">purchase.order.line.tree</field>
361             <field name="model">purchase.order.line</field>
362             <field name="type">tree</field>
363             <field name="arch" type="xml">
364                 <tree string="Purchase Order Lines">
365                     <field name="order_id"/>
366                     <field name="name"/>
367                     <field name="partner_id" string="Supplier" />
368                     <field name="product_id"/>
369                     <field name="price_unit"/>
370                     <field name="product_qty"/>
371                     <field name="product_uom"/>
372                     <field name="price_subtotal"/>
373                     <field name="date_planned"  widget="date" width="135"/>
374
375
376
377                     <field name="state" invisible="1"/>
378                     <field name="invoiced" invisible="1"/>
379                 </tree>
380             </field>
381         </record>
382         <record id="purchase_order_line_form2" model="ir.ui.view">
383             <field name="name">purchase.order.line.form2</field>
384             <field name="model">purchase.order.line</field>
385             <field name="type">form</field>
386             <field name="priority" eval="20"/>
387             <field name="arch" type="xml">
388                 <form string="Purchase Order Line">
389                     <notebook colspan="4">
390                         <page string="Order Line">
391                                <separator colspan="4" string="General Information"/>
392                              <field name="order_id"/>
393                             <field name="product_id" readonly="1" />
394                             <field name="product_qty" readonly="1" />
395                             <field name="product_uom" readonly="1"/>
396                             <field colspan="4" name="name"/>
397                             <field name="date_planned" widget="date"  readonly="1"/>
398                             <field name="price_unit"/>
399                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
400                             <field name="account_analytic_id" colspan="4" groups="analytic.group_analytic_accounting" domain="[('parent_id','!=',False)]"/>
401                             <group colspan="4" col="4" groups="base.group_extended">
402                                 <separator colspan="4" string="Taxes"/>
403                                 <field colspan="4" nolabel="1" name="taxes_id"
404                                     domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/>
405                             </group>
406                         </page>
407                         <page string="Invoicing" groups="base.group_extended">
408                             <separator colspan="4" string="Manual Invoices"/>
409                             <field name="invoiced"/>
410                             <newline/>
411                             <field colspan="4" name="invoice_lines" nolabel="1" widget="many2many"/>
412                         </page>
413                          <page string="Notes">
414                             <field colspan="4" name="notes" nolabel="1"/>
415                         </page>
416                         <page string="History" groups="base.group_extended">
417                                <separator colspan="4" string="Stock Moves"/>
418                                <field colspan="4" name="move_ids" nolabel="1" widget="many2many"/>
419                         </page>
420                     </notebook>
421                 </form>
422             </field>
423         </record>
424           <record id="purchase_order_line_search" model="ir.ui.view">
425             <field name="name">purchase.order.line.search</field>
426             <field name="model">purchase.order.line</field>
427             <field name="type">search</field>
428             <field name="arch" type="xml">
429                 <search string="Search Purchase Order">
430                         <group>
431                         <field name="order_id"/>
432                         <field name="product_id"/>
433                         <field name="partner_id"  string="Supplier"/>
434                         </group>
435                         <newline/>
436                         <group expand="0" string="Group By...">
437                         <filter string="Supplier" icon="terp-partner" domain="[]" context="{'group_by' : 'partner_id'}" />
438                         <separator orientation="vertical"/>
439                         <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by' : 'product_id'}" />
440                         <filter icon="terp-gtk-jump-to-rtl" string="Order Reference" domain="[]" context="{'group_by' :'order_id'}"/>
441                         <separator orientation="vertical"/>
442                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by' : 'state'}" />
443                         </group>
444                </search>
445             </field>
446         </record>
447
448         <act_window
449             context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
450             id="act_res_partner_2_purchase_order"
451             name="Purchase Orders"
452             groups="purchase.group_purchase_user"
453             res_model="purchase.order"
454             src_model="res.partner"/>
455
456         <act_window
457             context="{'search_default_product_id': [active_id], 'default_product_id': active_id}"
458             id="action_purchase_line_product_tree"
459             name="Purchases"
460             res_model="purchase.order.line"
461             src_model="product.product"
462             groups="purchase.group_purchase_user"/>
463
464
465         <record id="purchase_line_form_action2" model="ir.actions.act_window">
466             <field name="name">On Purchase Order Line</field>
467             <field name="type">ir.actions.act_window</field>
468             <field name="res_model">purchase.order.line</field>
469             <field name="domain">[('order_id.invoice_method','&lt;&gt;','picking'), ('state','in',('confirmed','done')), ('invoiced', '=', False)]</field>
470             <field name="view_type">form</field>
471             <field name="view_mode">tree,form</field>
472             <field name="search_view_id" ref="purchase_order_line_search"/>
473             <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>
474         </record>
475         <record id="purchase_line_form_action_tree2" model="ir.actions.act_window.view">
476             <field eval="1" name="sequence"/>
477             <field name="view_mode">tree</field>
478             <field name="view_id" ref="purchase_order_line_tree"/>
479             <field name="act_window_id" ref="purchase_line_form_action2"/>
480         </record>
481         <record id="purchase_line_form_action_form2" model="ir.actions.act_window.view">
482             <field eval="2" name="sequence"/>
483             <field name="view_mode">form</field>
484             <field name="view_id" ref="purchase_order_line_form2"/>
485             <field name="act_window_id" ref="purchase_line_form_action2"/>
486         </record>
487         <menuitem
488             action="purchase_line_form_action2"
489             id="menu_purchase_line_order_draft"
490             groups="base.group_extended"
491             parent="menu_procurement_management_invoice"
492             sequence="72"/>
493
494         <!--
495             Procurements
496         -->
497
498         <record id="view_procurement_form_inherit" model="ir.ui.view">
499             <field name="name">procurement.order.form.inherit</field>
500             <field name="model">procurement.order</field>
501             <field name="inherit_id" ref="procurement.procurement_form_view"/>
502             <field name="type">form</field>
503             <field name="arch" type="xml">
504                 <xpath expr="/form/notebook/page/field[@name='close_move']" position="before">
505                     <field name="purchase_id"/>
506                 </xpath>
507             </field>
508         </record>
509
510     </data>
511 </openerp>