flectra/addons/crm/wizard/crm_merge_opportunities_views.xml
2018-01-16 02:34:37 -08:00

59 lines
2.5 KiB
XML

<?xml version="1.0"?>
<flectra>
<!-- Merge Opportunities -->
<record id="merge_opportunity_form" model="ir.ui.view">
<field name="name">crm.merge.opportunity.form</field>
<field name="model">crm.merge.opportunity</field>
<field name="arch" type="xml">
<form string="Merge Leads/Opportunities">
<group string="Assign opportunities to">
<field name="user_id" class="oe_inline"/>
<field name="team_id" class="oe_inline"/>
</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="team_id"/>
</tree>
</field>
</group>
<footer>
<button name="action_merge" type="object" string="Merge" class="btn-primary"/>
<button string="Cancel" class="btn-default" special="cancel"/>
</footer>
</form>
</field>
</record>
<!-- Merge leads/opportunities action -->
<record id="merge_opportunity_act" model="ir.actions.act_window">
<field name="name">Merge leads/opportunities</field>
<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>
<act_window
id="action_merge_opportunities"
name="Merge leads/opportunities"
multi="True"
key2="client_action_multi"
res_model="crm.merge.opportunity"
src_model="crm.lead"
view_mode="form"
target="new"
view_type="form"
groups="sales_team.group_sale_salesman" />
</flectra>