44 lines
1.6 KiB
XML
44 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="view_purchase_order_group" model="ir.ui.view">
|
|
<field name="name">Merger Purchase Orders</field>
|
|
<field name="model">purchase.order.group</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Merge orders">
|
|
<group>
|
|
<separator string="Are you sure you want to merge these orders?"/>
|
|
<label string="
|
|
Please note that:
|
|
Orders will only be merged if:
|
|
* Purchase Orders are in draft
|
|
* Purchase Orders belong to the same supplier
|
|
* Purchase Orders are have same stock location, same pricelist, same currency
|
|
Lines will only be merged if:
|
|
* Order lines are exactly the same except for the product,quantity and unit
|
|
" colspan="4"/>
|
|
</group>
|
|
|
|
<footer>
|
|
<button name="merge_orders" string="Merge orders" type="object" class="oe_highlight"/>
|
|
or
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<act_window name="Merge Purchase orders"
|
|
context="{'search_default_draft': 1, 'search_default_approved': False}"
|
|
res_model="purchase.order.group"
|
|
src_model="purchase.order"
|
|
view_mode="form"
|
|
target="new"
|
|
multi="True"
|
|
key2="client_action_multi"
|
|
id="action_view_purchase_order_group"/>
|
|
|
|
</data>
|
|
</openerp>
|
|
|