2010-03-16 13:57:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2010-10-10 17:32:39 +00:00
|
|
|
<record id="view_purchase_order_group" model="ir.ui.view">
|
2010-03-16 13:57:58 +00:00
|
|
|
<field name="name">Merger Purchase Orders</field>
|
|
|
|
<field name="model">purchase.order.group</field>
|
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Merge orders">
|
2012-06-19 08:45:32 +00:00
|
|
|
<group>
|
|
|
|
<separator string="Are you sure you want to merge these orders?"/>
|
|
|
|
<label string="
|
2010-11-15 18:46:12 +00:00
|
|
|
Please note that:
|
|
|
|
Orders will only be merged if:
|
|
|
|
* Purchase Orders are in draft
|
|
|
|
* Purchase Orders belong to the same supplier
|
2015-04-15 12:10:27 +00:00
|
|
|
* Purchase Orders are have same stock location, same pricelist, same currency
|
2010-11-15 18:46:12 +00:00
|
|
|
Lines will only be merged if:
|
|
|
|
* Order lines are exactly the same except for the product,quantity and unit
|
2012-06-09 19:49:46 +00:00
|
|
|
" colspan="4"/>
|
2012-06-19 08:45:32 +00:00
|
|
|
</group>
|
|
|
|
|
2012-07-10 16:40:11 +00:00
|
|
|
<footer>
|
|
|
|
<button name="merge_orders" string="Merge orders" type="object" class="oe_highlight"/>
|
|
|
|
or
|
|
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
|
|
</footer>
|
2010-10-10 17:32:39 +00:00
|
|
|
</form>
|
2010-03-16 13:57:58 +00:00
|
|
|
</field>
|
2010-10-10 17:32:39 +00:00
|
|
|
</record>
|
2010-03-16 13:57:58 +00:00
|
|
|
|
2011-05-17 13:25:52 +00:00
|
|
|
<act_window name="Merge Purchase orders"
|
|
|
|
context="{'search_default_draft': 1, 'search_default_approved': False}"
|
2010-10-10 17:32:39 +00:00
|
|
|
res_model="purchase.order.group"
|
|
|
|
src_model="purchase.order"
|
|
|
|
view_mode="form"
|
2010-10-15 16:53:15 +00:00
|
|
|
target="new"
|
2012-06-09 19:49:46 +00:00
|
|
|
multi="True"
|
|
|
|
key2="client_action_multi"
|
|
|
|
id="action_view_purchase_order_group"/>
|
|
|
|
|
2010-03-16 13:57:58 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|
|
|
|
|