2010-07-29 07:05:49 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- Merge Opportunities -->
|
|
|
|
<record model="ir.ui.view" id="merge_opportunity_form">
|
|
|
|
<field name="name">crm.merge.opportunity.form</field>
|
|
|
|
<field name="model">crm.merge.opportunity</field>
|
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Merge Leads/Opportunities">
|
2013-04-17 16:17:03 +00:00
|
|
|
<group string="Assign opportunities to">
|
2014-03-05 16:40:16 +00:00
|
|
|
<field name="user_id" class="oe_inline" on_change="on_change_user(user_id, section_id, context)"/>
|
2014-05-09 10:46:07 +00:00
|
|
|
<field name="section_id" class="oe_inline" groups="base.group_multi_salesteams"/>
|
2013-04-17 16:17:03 +00:00
|
|
|
</group>
|
|
|
|
<group string="Select Leads/Opportunities">
|
|
|
|
<field name="opportunity_ids" nolabel="1">
|
|
|
|
<tree>
|
|
|
|
<field name="create_date"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="type"/>
|
|
|
|
<field name="contact_name"/>
|
|
|
|
<field name="email_from"/>
|
|
|
|
<field name="phone"/>
|
|
|
|
<field name="stage_id"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="section_id" groups="base.group_multi_salesteams"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</group>
|
2012-07-10 16:40:11 +00:00
|
|
|
<footer>
|
2012-09-27 13:45:13 +00:00
|
|
|
<button name="action_merge" type="object" string="Merge" class="oe_highlight"/>
|
2012-07-10 16:40:11 +00:00
|
|
|
or
|
2012-08-09 16:35:29 +00:00
|
|
|
<button string="Cancel" class="oe_link" special="cancel"/>
|
2012-07-10 16:40:11 +00:00
|
|
|
</footer>
|
2010-07-29 07:05:49 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2012-09-27 13:45:13 +00:00
|
|
|
<!-- Merge leads/opportunities action -->
|
2010-07-29 07:05:49 +00:00
|
|
|
<record model="ir.actions.act_window" id="merge_opportunity_act">
|
2012-09-27 13:45:13 +00:00
|
|
|
<field name="name">Merge leads/opportunities</field>
|
2010-07-29 07:05:49 +00:00
|
|
|
<field name="res_model">crm.merge.opportunity</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="view_id" ref="merge_opportunity_form"/>
|
|
|
|
<field name="target">new</field>
|
|
|
|
</record>
|
|
|
|
|
2010-09-17 13:35:06 +00:00
|
|
|
<act_window id="action_merge_opportunities"
|
2010-10-15 16:53:15 +00:00
|
|
|
multi="True"
|
2012-09-27 13:45:13 +00:00
|
|
|
key2="client_action_multi" name="Merge leads/opportunities"
|
2010-09-17 13:35:06 +00:00
|
|
|
res_model="crm.merge.opportunity" src_model="crm.lead"
|
2013-06-20 17:53:26 +00:00
|
|
|
view_mode="form" target="new" view_type="form"
|
|
|
|
groups="base.group_sale_salesman"
|
|
|
|
/>
|
2010-09-17 13:35:06 +00:00
|
|
|
|
2010-07-29 07:05:49 +00:00
|
|
|
</data>
|
2010-10-15 16:53:15 +00:00
|
|
|
</openerp>
|