2010-03-10 11:39:47 +00:00
|
|
|
<openerp>
|
2010-04-18 15:32:44 +00:00
|
|
|
<data>
|
2010-03-19 10:50:01 +00:00
|
|
|
|
2010-04-18 15:32:44 +00:00
|
|
|
<!-- Lead to Opportunity view -->
|
2010-03-10 11:39:47 +00:00
|
|
|
|
2010-04-18 15:32:44 +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"/>
|
2010-05-10 12:28:28 +00:00
|
|
|
<group attrs="{'invisible':[('partner_id','=',False)]}" col="2" colspan="2">
|
|
|
|
<field name="partner_id"/>
|
|
|
|
</group>
|
2010-04-18 15:32:44 +00:00
|
|
|
<newline/>
|
|
|
|
<field name="planned_revenue"/>
|
|
|
|
<field name="probability"/>
|
|
|
|
<separator colspan="4"/>
|
|
|
|
<group col="4" colspan="4">
|
|
|
|
<label string="" colspan="2"/>
|
|
|
|
<button special="cancel" string="Cancel" icon="gtk-cancel"/>
|
|
|
|
<button name="action_apply" string="Create Opportunity" type="object" icon="gtk-ok"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<!-- Lead to Opportunity action -->
|
|
|
|
|
|
|
|
<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-16 11:03:51 +00:00
|
|
|
|
2010-03-23 14:12:01 +00:00
|
|
|
|
|
|
|
<record id="view_crm_lead2opportunity_partner" model="ir.ui.view">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="name">crm.lead2opportunity.partner.form</field>
|
|
|
|
<field name="model">crm.lead2opportunity.partner</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Create a Partner">
|
2010-03-23 14:12:01 +00:00
|
|
|
<label string="Are you sure you want to create a partner based on this lead ?" colspan="4"/>
|
|
|
|
<label string="You may have to verify that this partner does not exist already." colspan="4"/>
|
|
|
|
<newline />
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="action"/>
|
|
|
|
<group attrs="{'invisible':[('action','!=','exist')]}">
|
|
|
|
<field name="partner_id" attrs="{'required': [('action', '=', 'exist')]}"/>
|
|
|
|
</group>
|
|
|
|
<separator string="" colspan="4" />
|
|
|
|
<group col="4" colspan="4">
|
|
|
|
<button special="cancel" string="Cancel" icon="gtk-cancel"/>
|
|
|
|
<button special="cancel" name="action_skip" string="_Skip" type="object" icon="gtk-goto-last"/>
|
|
|
|
<button name="make_partner" string="Continue" type="object" icon="gtk-ok"/>
|
|
|
|
</group>
|
2010-03-23 14:12:01 +00:00
|
|
|
</form>
|
2010-04-18 15:32:44 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-23 14:12:01 +00:00
|
|
|
|
2010-04-18 15:32:44 +00:00
|
|
|
</data>
|
2010-03-10 11:39:47 +00:00
|
|
|
</openerp>
|