2010-03-10 11:39:47 +00:00
|
|
|
<openerp>
|
|
|
|
<data>
|
2010-03-19 10:50:01 +00:00
|
|
|
|
|
|
|
<wizard
|
|
|
|
id="wizard_crm_lead_opportunity_set"
|
|
|
|
keyword="client_action_multi"
|
|
|
|
model="crm.lead"
|
|
|
|
name="crm.lead.opportunity_set"
|
|
|
|
multi="True" menu="False"
|
|
|
|
string="Convert To Opportunity"/>
|
|
|
|
|
|
|
|
<!-- Lead to Opportunity confirmation view -->
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="lead_to_opportunity_pre_view">
|
|
|
|
<field name="name">crm.opportunity2meeting.form</field>
|
|
|
|
<field name="model">crm.opportunity2meeting</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Convert To Meeting">
|
|
|
|
<label string="Are you sure to schedule a meeting for this Opportunity?" colspan="4"/>
|
|
|
|
<newline/>
|
|
|
|
<separator colspan="4" string=""/>
|
|
|
|
<button name="action_cancel" string="_Cancel"
|
|
|
|
icon="gtk-cancel" special="cancel" />
|
|
|
|
<button name="action_makeMeeting" type="object"
|
|
|
|
string="_Schedule" icon="gtk-go-forward" />
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-03-16 11:03:51 +00:00
|
|
|
<!-- Lead to Opportunity view -->
|
2010-03-10 11:39:47 +00:00
|
|
|
|
|
|
|
<record id="view_crm_lead2opportunity_create" model="ir.ui.view">
|
|
|
|
<field name="name">crm.lead2opportunity.create</field>
|
|
|
|
<field name="model">crm.lead2opportunity</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Convert To Opportunity">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="planned_revenue"/>
|
|
|
|
<field name="probability"/>
|
|
|
|
<group col="4" colspan="4">
|
|
|
|
<button special="cancel" string="Cancel" icon="gtk-cancel"/>
|
|
|
|
<button name="action_apply" string="Create Opportunity" type="object" icon="gtk-ok"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-03-16 11:03:51 +00:00
|
|
|
<!-- Lead to Opportunity action -->
|
2010-03-10 11:39:47 +00:00
|
|
|
|
2010-03-16 11:03:51 +00:00
|
|
|
<record id="action_crm_lead2opportunity" model="ir.actions.act_window">
|
|
|
|
<field name="name">Create Opportunity</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">crm.lead2opportunity</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="target">new</field>
|
|
|
|
</record>
|
|
|
|
|
2010-03-10 11:39:47 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|