[MERGE] trunk
[odoo/odoo.git] / addons / purchase / wizard / purchase_order_group_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <record id="view_purchase_order_group" model="ir.ui.view">
5             <field name="name">Merger Purchase Orders</field>
6             <field name="model">purchase.order.group</field>
7             <field name="type">form</field>
8             <field name="arch" type="xml">
9                <form string="Merge orders">
10                     <separator string="Are you sure you want to merge these orders ?" colspan="4"/>
11                        <newline/>
12                     <label string="
13 Please note that: &#10; &#10;
14 Orders will only be merged if: &#10;
15 * Purchase Orders are in draft &#10;
16 * Purchase Orders belong to the same supplier &#10;
17 * Purchase Orders are have same stock location, same pricelist &#10; &#10;
18 Lines will only be merged if: &#10;
19 * Order lines are exactly the same except for the product,quantity and unit &#10;
20 " colspan="4"/>                
21                     <newline/>                    
22                     <separator string="" colspan="4" />
23                     <button special="cancel" string="Cancel" icon="gtk-cancel"/>
24                     <button name="merge_orders" string="Merge orders" type="object" icon="gtk-convert"/>
25                 </form>
26             </field>
27         </record>
28
29         <act_window name="Merge Purchase orders"
30             context="{'search_default_draft': 1, 'search_default_approved': False}"
31             res_model="purchase.order.group"
32             src_model="purchase.order"
33             view_mode="form"
34             target="new"
35             multi="True"        
36             key2="client_action_multi"    
37             groups="base.group_extended"
38             id="action_view_purchase_order_group"/>    
39                         
40     </data>
41 </openerp>
42