2010-03-16 09:46:34 +00:00
|
|
|
<openerp>
|
2010-04-06 16:15:10 +00:00
|
|
|
<data>
|
2010-03-16 09:46:34 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
<!-- Lead to partner confirmation form -->
|
2010-03-16 09:46:34 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
<record id="view_crm_lead2partner_create" model="ir.ui.view">
|
|
|
|
<field name="name">crm.lead2partner.view.create</field>
|
|
|
|
<field name="model">crm.lead2partner</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"/>
|
|
|
|
<separator string="" colspan="4" />
|
|
|
|
<group col="4" colspan="4">
|
|
|
|
<button special="cancel" string="_Cancel" icon="gtk-cancel"/>
|
|
|
|
<button name="open_create_partner" string="Create _Partner" type="object" icon="gtk-ok"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-16 09:46:34 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
<!-- Lead to Partner form view -->
|
2010-03-16 09:46:34 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
<record id="view_crm_lead2partner" model="ir.ui.view">
|
|
|
|
<field name="name">crm.lead2partner.view</field>
|
|
|
|
<field name="model">crm.lead2partner</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Create a Partner">
|
|
|
|
<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 name="make_partner" string="Continue" type="object" icon="gtk-ok"/>
|
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-16 09:46:34 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
<!-- Lead to Partner wizard -->
|
2010-03-16 09:46:34 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
<act_window id="action_crm_lead2partner"
|
|
|
|
key2="client_action_multi" name="Create a Partner"
|
|
|
|
res_model="crm.lead2partner" src_model="crm.lead"
|
2010-05-06 13:44:29 +00:00
|
|
|
view_id="view_crm_lead2partner_create"
|
2010-04-06 16:15:10 +00:00
|
|
|
view_mode="form" target="new" view_type="form" />
|
2010-03-16 09:46:34 +00:00
|
|
|
|
2010-04-06 16:15:10 +00:00
|
|
|
</data>
|
2010-03-16 09:46:34 +00:00
|
|
|
</openerp>
|