2012-08-09 16:35:29 +00:00
|
|
|
<?xml version="1.0"?>
|
2010-03-10 11:39:47 +00:00
|
|
|
<openerp>
|
2012-06-28 15:33:16 +00:00
|
|
|
<data>
|
2012-08-09 16:35:29 +00:00
|
|
|
|
2010-03-23 14:12:01 +00:00
|
|
|
<record id="view_crm_lead2opportunity_partner" model="ir.ui.view">
|
2012-06-28 15:33:16 +00:00
|
|
|
<field name="name">crm.lead2opportunity.partner.form</field>
|
|
|
|
<field name="model">crm.lead2opportunity.partner</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Convert to Opportunity" version="7.0">
|
2012-11-12 13:30:33 +00:00
|
|
|
<group name="name">
|
2012-09-12 17:55:27 +00:00
|
|
|
<field name="name" class="oe_inline"/>
|
2013-02-01 14:18:11 +00:00
|
|
|
</group>
|
2013-04-17 16:17:03 +00:00
|
|
|
<group string="Assign opportunities to">
|
|
|
|
<field name="user_id" class="oe_inline" on_change="on_change_user(user_id, section_id, context)"/>
|
|
|
|
<field name="section_id" class="oe_inline"/>
|
|
|
|
</group>
|
2013-02-01 14:18:11 +00:00
|
|
|
<group string="Opportunities">
|
|
|
|
<field name="opportunity_ids" attrs="{'invisible': [('name', '!=', 'merge')]}" nolabel="1">
|
2012-09-12 17:55:27 +00:00
|
|
|
<tree>
|
2013-02-04 17:51:06 +00:00
|
|
|
<field name="create_date"/>
|
2013-02-01 16:18:50 +00:00
|
|
|
<field name="name"/>
|
2013-02-01 14:18:11 +00:00
|
|
|
<field name="type"/>
|
|
|
|
<field name="contact_name"/>
|
|
|
|
<field name="country_id" invisible="context.get('invisible_country', True)"/>
|
|
|
|
<field name="email_from"/>
|
|
|
|
<field name="phone"/>
|
|
|
|
<field name="stage_id"/>
|
2013-02-08 10:47:13 +00:00
|
|
|
<field name="user_id"/>
|
2013-03-25 16:51:25 +00:00
|
|
|
<field name="section_id" groups="base.group_multi_salesteams"/>
|
2012-09-12 17:55:27 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2012-06-18 12:45:11 +00:00
|
|
|
</group>
|
2012-11-12 13:30:33 +00:00
|
|
|
<group name="action" attrs="{'invisible': [('name', '!=', 'convert')]}">
|
2013-08-07 09:46:30 +00:00
|
|
|
<field name="action" on_change="onchange_action(action, context)" class="oe_inline"/>
|
2012-09-26 16:31:10 +00:00
|
|
|
<field name="partner_id"
|
|
|
|
attrs="{'required': [('action', '=', 'exist')], 'invisible':[('action','!=','exist')]}"
|
|
|
|
class="oe_inline"/>
|
|
|
|
</group>
|
2012-07-10 16:40:11 +00:00
|
|
|
<footer>
|
|
|
|
<button name="action_apply" string="Create Opportunity" type="object" class="oe_highlight"/>
|
|
|
|
or
|
2012-08-09 16:35:29 +00:00
|
|
|
<button string="Cancel" class="oe_link" special="cancel"/>
|
2012-07-10 16:40:11 +00:00
|
|
|
</footer>
|
2012-06-28 15:33:16 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
2012-08-09 16:35:29 +00:00
|
|
|
</record>
|
2010-07-29 11:15:22 +00:00
|
|
|
|
2012-06-28 06:40:05 +00:00
|
|
|
<record id="view_crm_lead2opportunity_partner_mass" model="ir.ui.view">
|
2012-06-28 15:33:16 +00:00
|
|
|
<field name="name">crm.lead2opportunity.partner.mass.form</field>
|
|
|
|
<field name="model">crm.lead2opportunity.partner.mass</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Convert to Opportunity" version="7.0">
|
2012-09-26 16:31:10 +00:00
|
|
|
<separator string="Conversion Options"/>
|
|
|
|
<group>
|
|
|
|
<field name="name" class="oe_inline"/>
|
|
|
|
</group>
|
|
|
|
<group attrs="{'invisible': [('name', '!=', 'convert')]}">
|
|
|
|
<field name="action" class="oe_inline"/>
|
|
|
|
<field name="partner_id"
|
|
|
|
attrs="{'required': [('action', '=', 'exist')], 'invisible':[('action','!=','exist')]}"
|
|
|
|
class="oe_inline"/>
|
2012-06-28 15:33:16 +00:00
|
|
|
</group>
|
2013-04-17 16:17:03 +00:00
|
|
|
<group string="Assign opportunities to" attrs="{'invisible': [('name', '=', '')]}">
|
|
|
|
<field name="section_id" groups="base.group_multi_salesteams"/>
|
|
|
|
<field name="user_ids" widget="many2many_tags"/>
|
|
|
|
</group>
|
2012-09-26 16:31:10 +00:00
|
|
|
<group string="Select Opportunities" attrs="{'invisible': [('name', '!=', 'merge')]}">
|
2012-09-26 15:54:50 +00:00
|
|
|
<field name="opportunity_ids" colspan="4" nolabel="1" attrs="{'invisible': [('name', '=', 'convert')]}">
|
|
|
|
<tree>
|
2013-02-04 17:51:06 +00:00
|
|
|
<field name="create_date"/>
|
2012-11-15 17:14:57 +00:00
|
|
|
<field name="name"/>
|
2013-02-04 17:51:06 +00:00
|
|
|
<field name="type"/>
|
|
|
|
<field name="contact_name"/>
|
|
|
|
<field name="country_id" invisible="context.get('invisible_country', True)"/>
|
|
|
|
<field name="email_from"/>
|
|
|
|
<field name="phone"/>
|
|
|
|
<field name="stage_id"/>
|
2013-02-08 10:47:13 +00:00
|
|
|
<field name="user_id"/>
|
2013-03-25 16:51:25 +00:00
|
|
|
<field name="section_id" groups="base.group_multi_salesteams"/>
|
2012-09-26 15:54:50 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2012-08-23 20:06:29 +00:00
|
|
|
</group>
|
2012-07-10 16:40:11 +00:00
|
|
|
<footer>
|
2012-08-23 20:06:29 +00:00
|
|
|
<button name="mass_convert" string="Convert to Opportunities" type="object" class="oe_highlight"/>
|
2012-07-10 16:40:11 +00:00
|
|
|
or
|
2012-08-09 16:35:29 +00:00
|
|
|
<button string="Cancel" class="oe_link" special="cancel"/>
|
2012-09-26 15:54:50 +00:00
|
|
|
</footer>
|
2012-06-28 15:33:16 +00:00
|
|
|
</form>
|
2012-09-26 15:54:50 +00:00
|
|
|
</field>
|
2012-06-28 15:33:16 +00:00
|
|
|
</record>
|
2011-10-26 16:29:01 +00:00
|
|
|
|
|
|
|
<record id="action_crm_lead2opportunity_partner" model="ir.actions.act_window">
|
2012-09-12 17:55:27 +00:00
|
|
|
<field name="name">Convert to opportunity</field>
|
2011-10-26 16:29:01 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">crm.lead2opportunity.partner</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="view_crm_lead2opportunity_partner"/>
|
|
|
|
<field name="target">new</field>
|
|
|
|
</record>
|
2012-08-09 16:35:29 +00:00
|
|
|
|
|
|
|
<act_window id="action_crm_send_mass_convert"
|
2011-03-16 14:30:25 +00:00
|
|
|
multi="True"
|
2012-09-27 13:45:13 +00:00
|
|
|
key2="client_action_multi" name="Convert to opportunities"
|
2011-03-16 14:30:25 +00:00
|
|
|
res_model="crm.lead2opportunity.partner.mass" src_model="crm.lead"
|
|
|
|
view_mode="form" target="new" view_type="form"
|
|
|
|
context="{'mass_convert' : True}"
|
2013-06-20 17:53:26 +00:00
|
|
|
view_id="view_crm_lead2opportunity_partner_mass"
|
|
|
|
groups="base.group_sale_salesman"
|
|
|
|
/>
|
2012-09-26 15:54:50 +00:00
|
|
|
|
2012-06-28 15:33:16 +00:00
|
|
|
</data>
|
2010-03-10 11:39:47 +00:00
|
|
|
</openerp>
|