1 <?xml version="1.0" encoding="utf-8"?>
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="arch" type="xml">
8 <form string="Merge orders" version="7.0">
10 <separator string="Are you sure you want to merge these orders?"/>
12 Please note that:
13 Orders will only be merged if:
14 * Purchase Orders are in draft
15 * Purchase Orders belong to the same supplier
16 * Purchase Orders are have same stock location, same pricelist
17 Lines will only be merged if:
18 * Order lines are exactly the same except for the product,quantity and unit
23 <button name="merge_orders" string="Merge orders" type="object" class="oe_highlight"/>
25 <button string="Cancel" class="oe_link" special="cancel" />
31 <act_window name="Merge Purchase orders"
32 context="{'search_default_draft': 1, 'search_default_approved': False}"
33 res_model="purchase.order.group"
34 src_model="purchase.order"
38 key2="client_action_multi"
39 id="action_view_purchase_order_group"/>