[MERGE] merged with the trunk
[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"
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" groups="product.group_purchase_pricelist"/>
18
19         <menuitem
20             action="product.product_pricelist_action" id="menu_product_pricelist_action_purhase"
21             parent="menu_purchase_config_pricelist" sequence="20" groups="base.group_no_one"/>
22
23         <menuitem
24             action="product.product_pricelist_action_for_purchase" id="menu_product_pricelist_action2_purchase"
25             parent="menu_purchase_config_pricelist" sequence="10" />
26
27         <menuitem
28             id="menu_product_in_config_purchase" name="Products"
29             parent="menu_purchase_config_purchase" sequence="30" groups="base.group_no_one"/>
30
31         <menuitem
32             action="product.product_category_action_form" id="menu_product_category_config_purchase"
33             parent="purchase.menu_product_in_config_purchase" sequence="1" />
34
35         <menuitem
36             id="menu_purchase_unit_measure_purchase" name="Units of Measure"
37             parent="purchase.menu_product_in_config_purchase"  sequence="20" groups="product.group_uom"/>
38
39         <menuitem
40              action="product.product_uom_categ_form_action" id="menu_purchase_uom_categ_form_action"
41              parent="purchase.menu_product_in_config_purchase" sequence="5" />
42
43         <menuitem
44               action="product.product_uom_form_action" id="menu_purchase_uom_form_action"
45               parent="purchase.menu_product_in_config_purchase" sequence="10"/>
46
47         <menuitem
48             id="menu_purchase_partner_cat" name="Address Book"
49             parent="menu_purchase_config_purchase"/>
50
51         <menuitem
52             action="base.action_partner_category_form" id="menu_partner_categories_in_form" name="Partner Categories"
53             parent="purchase.menu_purchase_partner_cat" groups="base.group_no_one"/>
54
55      <!--supplier menu-->
56     <menuitem id="base.menu_procurement_management_supplier_name" name="Suppliers"
57             parent="menu_procurement_management"
58             action="base.action_partner_supplier_form" sequence="15"/>
59
60           <!--Inventory control-->
61       <menuitem id="menu_procurement_management_inventory" name="Receive Products"
62             parent="base.menu_purchase_root" sequence="4"/>
63       <menuitem action="stock.action_picking_tree4" id="menu_action_picking_tree4" parent="menu_procurement_management_inventory"
64             name="Incoming Shipments" sequence="9"/>
65       <menuitem action="stock.action_reception_picking_move" id="menu_action_picking_tree_in_move"
66             parent="menu_procurement_management_inventory" sequence="11"/>
67
68      <!--Invoice control-->
69      <menuitem id="menu_procurement_management_invoice" name="Invoice Control"
70           parent="base.menu_purchase_root" sequence="6"/>
71
72     <record id="action_invoice_pending" model="ir.actions.act_window">
73         <field name="res_model">account.invoice</field>
74         <field name="view_type">form</field>
75         <field name="view_mode">tree,form,calendar,graph</field>
76         <field eval="False" name="view_id"/>
77         <field name="domain">[('type','=','in_invoice')]</field>
78         <field name="context">{'default_type':'in_invoice', 'type':'in_invoice', 'journal_type': 'purchase', 'search_default_draft': 1}</field>
79         <field name="search_view_id" ref="account.view_account_invoice_filter"/>
80             <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>
81     </record>
82
83      <menuitem name="Based on draft invoices"
84           id="menu_procurement_management_pending_invoice"
85           action="action_invoice_pending"
86           parent="menu_procurement_management_invoice"
87           sequence="13"/>
88
89       <!--product menu-->
90       <menuitem id="menu_procurement_management_product" name="Products"
91           parent="base.menu_purchase_root" sequence="8"/>
92
93       <menuitem name="Products by Category" id="menu_product_by_category_purchase_form" action="product.product_category_action"
94            parent="menu_procurement_management_product" sequence="10"/>
95
96       <menuitem name="Products" id="menu_procurement_partner_contact_form" action="product.product_normal_action_puchased"
97           parent="menu_procurement_management_product"/>
98
99        <record model="ir.ui.view" id="purchase_order_calendar">
100             <field name="name">purchase.order.calendar</field>
101             <field name="model">purchase.order</field>
102             <field name="type">calendar</field>
103             <field name="priority" eval="2"/>
104             <field name="arch" type="xml">
105                 <calendar string="Calendar View" date_start="minimum_planned_date" color="partner_id">
106                     <field name="name"/>
107                     <field name="amount_total"/>
108                     <field name="partner_id"/>
109                 </calendar>
110             </field>
111         </record>
112         <record model="ir.ui.view" id="purchase_order_graph">
113             <field name="name">purchase.order.graph</field>
114             <field name="model">purchase.order</field>
115             <field name="type">graph</field>
116             <field name="arch" type="xml">
117                 <graph string="Purchase Order" type="bar">
118                     <field name="partner_id"/>
119                     <field name="amount_total" operator="+"/>
120                 </graph>
121             </field>
122         </record>
123
124         <record id="purchase_order_form" model="ir.ui.view">
125             <field name="name">purchase.order.form</field>
126             <field name="model">purchase.order</field>
127             <field name="type">form</field>
128             <field name="arch" type="xml">
129                 <form string="Purchase Order" version="7.0">
130                 <header>
131                     <button name="purchase_confirm" states="draft,sent" string="Confirm Order" class="oe_form_button_hi"/>
132                     <button name="wkf_send_rfq" states="draft" string="Send RFQ" type="object" context="{'send_rfq':True}"/>
133                     <button name="wkf_send_rfq" states="confirmed" string="Resend Purchase Order" type="object"/>
134                     <button name="action_cancel" states="except_picking,except_invoice,wait" string="Cancel" type="object" />
135                     <button name="picking_ok" states="except_picking" string="Manually Corrected"/>
136                     <button name="invoice_ok" states="except_invoice" string="Manually Corrected"/>
137                     <button name="purchase_appbuyer" states="wait_auth" string="Approve Purchase" class="oe_form_button_hi"/>
138                     <button name="purchase_approve" states="confirmed" string="Approve Order" class="oe_form_button_hi"/>
139                     <button name="view_invoice" string="Receive Invoice" type="object" attrs="{'invisible': ['|', ('invoice_method','=','picking'), '|', ('state','!=', 'approved'), ('invoiced','=',True) ]}"/>
140                     <button name="view_picking" string="Receive Products" type="object" attrs="{'invisible': ['|', ('shipped','=',True), ('state','!=', 'approved')]}"/>
141                     <button name="action_cancel_draft" states="cancel,sent,confirmed" string="Set to Draft" type="object"/>
142                     <button name="purchase_cancel" states="draft,confirmed,wait_auth,sent" string="Cancel"/>
143                     <field name="state" widget="statusbar" statusbar_visible="draft,approved,done" statusbar_colors='{"except_picking":"red","except_invoice":"red","confirmed":"blue","wait":"blue"}' readonly="1"/>
144                 </header>
145                 <sheet>
146                     <group>
147                         <group>
148                             <field name="partner_id" on_change="onchange_partner_id(partner_id)" context="{'search_default_supplier':1,'default_supplier':1,'default_customer':0}"  options='{"quick_create": false}'/>
149                             <field name="partner_ref"/>
150                             <field domain="[('type','=','purchase')]" name="pricelist_id" groups="product.group_purchase_pricelist"/>
151                         </group>
152                         <group>
153                             <field name="name"/>
154                             <field name="date_order"/>
155                             <field name="origin" attr="{'invisible': [('origin','=',False)]}"/>
156                             <field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection" groups="stock.group_locations"/>
157                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
158                         </group>
159                     </group>
160                     <notebook>
161                         <page string="Purchase Order">
162                             <field name="order_line">
163                                 <tree string="Purchase Order Lines">
164                                     <field name="date_planned"/>
165                                     <field name="name"/>
166                                     <field name="product_qty"/>
167                                     <field name="product_uom" groups="product.group_uom"/>
168                                     <field name="price_unit"/>
169                                     <field name="price_subtotal"/>
170                                 </tree>
171                             </field>
172                             <group class="oe_form_subtotal_footer">
173                                 <field name="amount_untaxed"/>
174                                 <field name="amount_tax"/>
175                                 <field name="amount_total" class="oe_form_subtotal_footer_separator"/>
176                                 <button name="button_dummy" states="draft" string="Compute" type="object" icon="gtk-execute"/>
177                             </group>
178                             <div class="oe_clear"/>
179                             <label for="notes"/>
180                             <field name="notes"/>
181                         </page>
182                         <page string="Delivery &amp; Invoicing">
183                             <group>
184                                 <group string="Delivery">
185                                     <field name="dest_address_id" on_change="onchange_dest_address_id(dest_address_id)"/>
186                                     <field name="minimum_planned_date"/>
187                                     <field name="location_id" groups="stock.group_locations"/>
188                                     <field name="shipped"/>
189                                 </group>
190                                 <group string="Invoice Control">
191                                     <field name="invoice_method"/>
192                                     <field name="fiscal_position" widget="selection"/>
193                                     <field name="invoiced"/>
194                                 </group>
195                                 <group groups="base.group_no_one" string="Purchase Control">
196                                     <field name="validator"/>
197                                     <field name="date_approve"/>
198                                 </group>
199                                 <separator string="Invoices"/>
200                                 <field name="invoice_ids" context="{'type':'in_invoice', 'journal_type':'purchase'}"/>
201                             </group>
202                         </page>
203                     </notebook>
204                 </sheet>
205                 <footer>
206                    <field name="message_ids" widget="ThreadView"/>
207                 </footer>
208                 </form>
209             </field>
210         </record>
211
212        <record id="view_request_for_quotation_filter" model="ir.ui.view">
213             <field name="name">request.quotation.select</field>
214             <field name="model">purchase.order</field>
215             <field name="type">search</field>
216             <field name="arch" type="xml">
217                 <search string="Search Purchase Order">
218                  <group>
219                     <filter icon="terp-document-new" name="draft" string="Quotations" domain="[('state','=','draft')]"  help="Purchase order which are in draft state"/>
220                     <filter icon="terp-check" name="approved" string="Approved" domain="[('state','in',('approved','done'))]"  help="Approved purchase order"/>
221                     <separator orientation="vertical"/>
222                     <filter icon="terp-gtk-go-back-rtl" name="not_invoiced" string="Not Invoiced" domain="[('invoice_ids','=', False)]"  help="Purchase orders that include lines not invoiced."/>
223                     <filter icon="terp-emblem-important" name="exception" string="Exception" domain="[('state','in',('except_invoice','except_picking'))]"  help="Purchase order which are in the exception state"/>
224                     <separator orientation="vertical"/>
225                     <field name="name" string="Reference"/>
226                     <field name="partner_id"/>
227                     <field name="product_id"/>
228                     <field name="create_uid"/>
229                 </group>
230                 <newline/>
231                   <group expand="0" string="Group By...">
232                     <filter string="Supplier" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
233                      <separator orientation="vertical"/>
234                     <filter string="Source" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
235                     <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
236                      <separator orientation="vertical"/>
237                     <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_order'}"/>
238                     <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'minimum_planned_date'}"/>
239
240                 </group>
241               </search>
242             </field>
243         </record>
244
245         <record id="view_purchase_order_filter" model="ir.ui.view">
246             <field name="name">purchase.order.list.select</field>
247             <field name="model">purchase.order</field>
248             <field name="type">search</field>
249             <field name="arch" type="xml">
250                 <search string="Search Purchase Order">
251                  <group>
252                     <filter icon="terp-document-new" name="draft" string="Quotations" domain="[('state','=','draft')]"  help="Purchase orders which are in draft state"/>
253                     <filter icon="terp-check" name="approved" string="Purchase Orders" domain="[('state','not in',('draft','cancel'))]"  help="Approved purchase orders"/>
254                     <separator orientation="vertical"/>
255                     <filter icon="terp-gtk-go-back-rtl" name="not_invoiced" string="Not Invoiced" domain="[('invoice_ids','=', False)]"  help="Purchase orders that include lines not invoiced."/>
256                     <filter icon="terp-emblem-important" name="exception" string="Exception" domain="[('state','in',('except_invoice','except_picking'))]" help="Purchase orders which are in exception state"/>
257                     <separator orientation="vertical"/>
258                     <field name="name" string="Reference"/>
259                     <field name="partner_id"/>
260                     <field name="product_id"/>
261                     <field name="create_uid"/>
262                 </group>
263                 <newline/>
264                   <group expand="0" string="Group By...">
265                     <filter string="Supplier" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
266                      <separator orientation="vertical"/>
267                     <filter string="Source" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
268                     <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
269                      <separator orientation="vertical"/>
270                     <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_order'}"/>
271                     <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'minimum_planned_date'}"/>
272
273                 </group>
274               </search>
275             </field>
276         </record>
277
278         <record id="purchase_order_tree" model="ir.ui.view">
279             <field name="name">purchase.order.tree</field>
280             <field name="model">purchase.order</field>
281             <field name="type">tree</field>
282             <field name="arch" type="xml">
283                 <tree fonts="bold:needaction_pending==True" colors="grey:state=='cancel';blue:state in ('wait','confirmed');red:state in ('except_invoice','except_picking')" string="Purchase Order">
284                     <field name="needaction_pending" invisible="1"/>
285                     <field name="name" string="Reference"/>
286                     <field name="date_order" />
287                     <field name="partner_id"/>
288                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
289                     <field name="minimum_planned_date" invisible="context.get('quotation_only', False)"/>
290                     <field name="origin"/>
291                     <field name="invoiced_rate" widget="progressbar" invisible="context.get('quotation_only', False)"/>
292                     <field name="shipped_rate" widget="progressbar" invisible="context.get('quotation_only', False)"/>
293                     <field name="amount_untaxed" sum="Total Untaxed amount"/>
294                     <field name="amount_total" sum="Total amount"/>
295                     <field name="state"/>
296                 </tree>
297             </field>
298         </record>
299
300         <record id="purchase_rfq" model="ir.actions.act_window">
301             <field name="name">Quotations</field>
302             <field name="type">ir.actions.act_window</field>
303             <field name="res_model">purchase.order</field>
304             <field name="context">{'search_default_draft': 1}</field>
305             <field name="view_mode">tree,form,graph,calendar</field>
306             <field name="search_view_id" ref="view_purchase_order_filter"/>
307             <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>
308         </record>
309         <menuitem action="purchase_rfq" id="menu_purchase_rfq"
310             parent="menu_procurement_management"
311             sequence="0"/>
312
313         <record id="purchase_form_action" model="ir.actions.act_window">
314             <field name="name">Purchase Orders</field>
315             <field name="type">ir.actions.act_window</field>
316             <field name="res_model">purchase.order</field>
317             <field name="view_mode">tree,form,graph,calendar</field>
318             <field name="context">{'search_default_approved': 1}</field>
319             <field name="search_view_id" ref="view_purchase_order_filter"/>
320             <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>
321         </record>
322         <menuitem action="purchase_form_action" id="menu_purchase_form_action" parent="menu_procurement_management" sequence="6"/>
323
324
325         <record id="purchase_order_line_form" model="ir.ui.view">
326             <field name="name">purchase.order.line.form</field>
327             <field name="model">purchase.order.line</field>
328             <field name="type">form</field>
329             <field name="arch" type="xml">
330                 <form string="Purchase Order Line" version="7.0">
331                     <sheet>
332                         <label for="name" class="oe_form_readonly_hidden"/>
333                         <h1><field name="name"/></h1>
334                         <label for="product_id" class="oe_form_readonly_hidden"/>
335                         <group>
336                             <group>
337                                 <field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes,context)"/>
338                                 <label for="product_qty"/>
339                                 <div>
340                                     <field name="product_qty" on_change="onchange_product_id(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id,parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes,context)" class="oe_form_inline"/>
341                                     <field name="product_uom" groups="product.group_uom" on_change="onchange_product_uom(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes,context)" class="oe_form_inline"/>
342                                 </div>
343                                 <field name="price_unit"/>
344                             </group>
345                             <group>
346                                 <field name="date_planned" widget="date"/>
347                                 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
348                                 <field name="account_analytic_id" colspan="4" groups="purchase.group_analytic_accounting" domain="[('parent_id','!=',False)]" />
349                                 <field name="taxes_id" widget="many2many_tags"
350                                     domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/>
351                             </group>
352                             <group string="Notes" colspan="4">
353                                 <field name="notes"/>
354                             </group>
355                             <group string="Invoices" colspan="4">
356                                 <field name="invoiced"/>
357                                 <field name="invoice_lines" nolabel="1" colspan="2"/>
358                             </group>
359                             <separator string="Stock Moves"/>
360                             <field name="move_ids"/>
361                         </group>
362                     </sheet>
363                 </form>
364             </field>
365         </record>
366
367         <record id="purchase_order_line_tree" model="ir.ui.view">
368             <field name="name">purchase.order.line.tree</field>
369             <field name="model">purchase.order.line</field>
370             <field name="type">tree</field>
371             <field name="arch" type="xml">
372                 <tree string="Purchase Order Lines">
373                     <field name="order_id"/>
374                     <field name="name"/>
375                     <field name="partner_id" string="Supplier" />
376                     <field name="product_id"/>
377                     <field name="price_unit"/>
378                     <field name="product_qty"/>
379                     <field name="product_uom" groups="product.group_uom"/>
380                     <field name="price_subtotal"/>
381                     <field name="date_planned"  widget="date" width="135"/>
382                     <field name="state" invisible="1"/>
383                     <field name="invoiced" invisible="1"/>
384                 </tree>
385             </field>
386         </record>
387         <record id="purchase_order_line_form2" model="ir.ui.view">
388             <field name="name">purchase.order.line.form2</field>
389             <field name="model">purchase.order.line</field>
390             <field name="type">form</field>
391             <field name="priority" eval="20"/>
392             <field name="arch" type="xml">
393                 <form string="Purchase Order Line" version="7.0">
394                     <label for="order_id" class="oe_form_readonly_hidden"/>
395                     <h1>
396                         <field name="order_id" class="oe_form_inline"/>, 
397                         <field name="date_order" class="oe_form_inline"/>
398                     </h1>
399                     <label for="partner_id" class="oe_form_readonly_hidden"/>
400                     <h2><field name="partner_id"/></h2>
401
402                     <group>
403                         <group>
404                             <field name="name"/>
405                             <field name="product_id" readonly="1"/>
406                             <label for="product_qty"/>
407                             <div>
408                                 <field name="product_qty" readonly="1" class="oe_form_inline"/>
409                                 <field name="product_uom" readonly="1" groups="product.group_uom" class="oe_form_inline"/>
410                             </div>
411                             <field name="price_unit"/>
412                         </group>
413                         <group>
414                             <field name="date_planned" widget="date"  readonly="1"/>
415                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
416                             <field name="account_analytic_id" colspan="4" groups="purchase.group_analytic_accounting" domain="[('parent_id','!=',False)]"/>
417                             <field name="taxes_id" widget="many2many_tags"
418                                 domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/>
419                             <field name="invoiced"/>
420                         </group>
421                     </group>
422                     <separator string="Manual Invoices"/>
423                     <field name="invoice_lines"/>
424                     <separator string="Notes"/>
425                     <field name="notes"/>
426                     <separator string="Stock Moves"/>
427                     <field name="move_ids"/>
428                 </form>
429             </field>
430         </record>
431           <record id="purchase_order_line_search" model="ir.ui.view">
432             <field name="name">purchase.order.line.search</field>
433             <field name="model">purchase.order.line</field>
434             <field name="type">search</field>
435             <field name="arch" type="xml">
436                 <search string="Search Purchase Order">
437                     <group>
438                         <field name="order_id"/>
439                         <field name="product_id"/>
440                         <field name="partner_id"  string="Supplier"/>
441                     </group>
442                         <newline/>
443                     <group expand="0" string="Group By...">
444                         <filter string="Supplier" icon="terp-partner" domain="[]" context="{'group_by' : 'partner_id'}" />
445                         <separator orientation="vertical"/>
446                         <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by' : 'product_id'}" />
447                         <filter icon="terp-gtk-jump-to-rtl" string="Order Reference" domain="[]" context="{'group_by' :'order_id'}"/>
448                         <separator orientation="vertical"/>
449                         <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by' : 'state'}" />
450                     </group>
451                </search>
452             </field>
453         </record>
454
455         <act_window
456             context="{'search_default_partner_id': [active_id], 'default_partner_id': active_id}"
457             id="act_res_partner_2_purchase_order"
458             name="RFQs and Purchases"
459             groups="purchase.group_purchase_user"
460             res_model="purchase.order"
461             src_model="res.partner"/>
462
463         <act_window
464             context="{'search_default_product_id': [active_id], 'default_product_id': active_id}"
465             id="action_purchase_line_product_tree"
466             name="Purchases"
467             res_model="purchase.order.line"
468             src_model="product.product"
469             groups="purchase.group_purchase_user"/>
470
471
472         <record id="purchase_line_form_action2" model="ir.actions.act_window">
473             <field name="name">Based on Purchase Order lines</field>
474             <field name="type">ir.actions.act_window</field>
475             <field name="res_model">purchase.order.line</field>
476             <field name="domain">[('order_id.invoice_method','&lt;&gt;','picking'), ('state','in',('confirmed','done')), ('invoiced', '=', False)]</field>
477             <field name="view_type">form</field>
478             <field name="view_mode">tree,form</field>
479             <field name="search_view_id" ref="purchase_order_line_search"/>
480             <field name="help">If you set the Invoicing Control on a purchase order as "Based on Purchase Order lines", you can track here all the purchase order lines for which you have not yet received the supplier invoice. Once you are ready to receive a supplier invoice, you can generate a draft supplier invoice based on the lines from this menu.</field>
481         </record>
482         <record id="purchase_line_form_action_tree2" model="ir.actions.act_window.view">
483             <field eval="1" name="sequence"/>
484             <field name="view_mode">tree</field>
485             <field name="view_id" ref="purchase_order_line_tree"/>
486             <field name="act_window_id" ref="purchase_line_form_action2"/>
487         </record>
488         <record id="purchase_line_form_action_form2" model="ir.actions.act_window.view">
489             <field eval="2" name="sequence"/>
490             <field name="view_mode">form</field>
491             <field name="view_id" ref="purchase_order_line_form2"/>
492             <field name="act_window_id" ref="purchase_line_form_action2"/>
493         </record>
494         <menuitem
495             action="purchase_line_form_action2"
496             id="menu_purchase_line_order_draft"
497             parent="menu_procurement_management_invoice"
498             sequence="72"/>
499
500         <!--
501             Procurements
502         -->
503
504         <record id="view_procurement_form_inherit" model="ir.ui.view">
505             <field name="name">procurement.order.form.inherit</field>
506             <field name="model">procurement.order</field>
507             <field name="inherit_id" ref="procurement.procurement_form_view"/>
508             <field name="type">form</field>
509             <field name="arch" type="xml">
510                 <xpath expr="//field[@name='close_move']" position="before">
511                     <field name="purchase_id"/>
512                 </xpath>
513             </field>
514         </record>
515
516     </data>
517 </openerp>