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