64 lines
2.7 KiB
XML
64 lines
2.7 KiB
XML
<openerp>
|
|
<data>
|
|
|
|
<!-- Lead to Opportunity view -->
|
|
|
|
<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"/>
|
|
<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>
|
|
|
|
|
|
<record id="view_crm_lead2opportunity_partner" model="ir.ui.view">
|
|
<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">
|
|
<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 />
|
|
<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>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|