2009-12-04 14:15:17 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
2012-05-22 15:07:35 +00:00
|
|
|
<data>
|
2014-05-12 11:41:49 +00:00
|
|
|
<!--
|
2012-05-24 08:09:44 +00:00
|
|
|
CRM CASE STAGE
|
2012-08-10 14:08:56 +00:00
|
|
|
-->
|
2012-05-22 15:07:35 +00:00
|
|
|
<!-- Stage Search view -->
|
|
|
|
<record id="crm_lead_stage_search" model="ir.ui.view">
|
|
|
|
<field name="name">Stage - Search</field>
|
|
|
|
<field name="model">crm.case.stage</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Stage Search">
|
2013-07-16 15:10:03 +00:00
|
|
|
<field name="name"/>
|
2012-05-24 09:10:24 +00:00
|
|
|
<field name="type"/>
|
2013-07-16 15:10:03 +00:00
|
|
|
<field name="sequence"/>
|
|
|
|
<field name="probability"/>
|
2012-05-22 15:07:35 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-02-18 10:27:48 +00:00
|
|
|
|
2012-05-24 08:09:44 +00:00
|
|
|
<!-- Stage Form view -->
|
2012-05-22 15:07:35 +00:00
|
|
|
<record id="crm_lead_stage_act" model="ir.actions.act_window">
|
|
|
|
<field name="name">Stages</field>
|
|
|
|
<field name="res_model">crm.case.stage</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="crm.crm_case_stage_tree"/>
|
2012-08-04 14:35:56 +00:00
|
|
|
<field name="help" type="html">
|
2012-08-04 13:56:31 +00:00
|
|
|
<p class="oe_view_nocontent_create">
|
2012-08-04 13:21:36 +00:00
|
|
|
Click to set a new stage in your lead/opportunity pipeline.
|
|
|
|
</p><p>
|
|
|
|
Stages will allow salespersons to easily track how a specific
|
|
|
|
lead or opportunity is positioned in the sales cycle.
|
|
|
|
</p>
|
|
|
|
</field>
|
2012-05-22 15:07:35 +00:00
|
|
|
</record>
|
2010-06-03 08:51:24 +00:00
|
|
|
|
2012-07-02 10:17:57 +00:00
|
|
|
<menuitem action="crm_lead_stage_act" id="menu_crm_lead_stage_act" name="Stages" sequence="0" parent="base.menu_crm_config_lead" groups="base.group_no_one"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
|
2012-05-24 08:09:44 +00:00
|
|
|
<!--
|
|
|
|
LEADS/OPPORTUNITIES CATEGORIES
|
2012-08-10 14:08:56 +00:00
|
|
|
-->
|
2010-08-11 13:15:24 +00:00
|
|
|
|
2012-05-24 08:09:44 +00:00
|
|
|
<!-- Categories Form View -->
|
2010-08-11 13:15:24 +00:00
|
|
|
<record id="crm_lead_categ_action" model="ir.actions.act_window">
|
2012-08-04 13:21:36 +00:00
|
|
|
<field name="name">Sales Tags</field>
|
2010-08-11 13:15:24 +00:00
|
|
|
<field name="res_model">crm.case.categ</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="crm_case_categ_tree-view"/>
|
2011-11-24 14:20:01 +00:00
|
|
|
<field name="context" eval="{'object_id': ref('model_crm_lead')}"/>
|
2010-08-11 13:15:24 +00:00
|
|
|
<field name="domain">[('object_id.model', '=', 'crm.lead')]</field>
|
2012-08-04 14:35:56 +00:00
|
|
|
<field name="help" type="html">
|
2012-08-04 13:56:31 +00:00
|
|
|
<p class="oe_view_nocontent_create">
|
2012-08-09 16:35:29 +00:00
|
|
|
Click to define a new sales tag.
|
2012-08-04 13:21:36 +00:00
|
|
|
</p><p>
|
|
|
|
Create specific tags that fit your company's activities
|
|
|
|
to better classify and analyse your leads and opportunities.
|
|
|
|
Such categories could for instance reflect your product
|
|
|
|
structure or the different types of sales you do.
|
|
|
|
</p>
|
|
|
|
</field>
|
2010-08-11 13:15:24 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem action="crm_lead_categ_action"
|
2012-08-07 06:06:05 +00:00
|
|
|
id="menu_crm_lead_categ" name="Sales Tags"
|
2012-03-19 10:09:54 +00:00
|
|
|
parent="base.menu_crm_config_lead" sequence="1" groups="base.group_no_one"/>
|
2010-03-05 12:43:16 +00:00
|
|
|
|
2012-05-24 08:09:44 +00:00
|
|
|
<!--
|
|
|
|
LEADS
|
2012-08-10 14:08:56 +00:00
|
|
|
-->
|
2012-06-13 09:06:57 +00:00
|
|
|
<act_window
|
|
|
|
id="act_crm_opportunity_crm_phonecall_new"
|
|
|
|
name="Phone calls"
|
|
|
|
groups="base.group_sale_salesman"
|
|
|
|
res_model="crm.phonecall"
|
|
|
|
view_mode="tree,calendar,form"
|
2012-07-19 08:42:03 +00:00
|
|
|
context="{'default_duration': 1.0 ,'default_opportunity_id': active_id}"
|
2012-06-13 09:06:57 +00:00
|
|
|
view_type="form"/>
|
|
|
|
|
|
|
|
<act_window
|
2014-01-15 09:38:05 +00:00
|
|
|
id="act_crm_opportunity_calendar_event_new"
|
2012-06-13 09:06:57 +00:00
|
|
|
name="Meetings"
|
2014-01-15 09:38:05 +00:00
|
|
|
res_model="calendar.event"
|
2012-06-13 09:06:57 +00:00
|
|
|
view_mode="tree,form,calendar"
|
|
|
|
context="{'default_duration': 4.0, 'default_opportunity_id': active_id}"
|
|
|
|
view_type="form"/>
|
|
|
|
|
2010-03-05 12:43:16 +00:00
|
|
|
|
2010-06-25 19:07:27 +00:00
|
|
|
<!-- CRM Lead Form View -->
|
2010-03-22 10:40:26 +00:00
|
|
|
<record model="ir.ui.view" id="crm_case_form_view_leads">
|
2009-12-08 07:25:05 +00:00
|
|
|
<field name="name">CRM - Leads Form</field>
|
2009-12-31 12:57:20 +00:00
|
|
|
<field name="model">crm.lead</field>
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Leads Form">
|
2012-06-04 12:11:39 +00:00
|
|
|
<header>
|
2012-05-24 08:35:31 +00:00
|
|
|
<button name="%(crm.action_crm_lead2opportunity_partner)d" string="Convert to Opportunity" type="action"
|
2013-07-16 15:10:03 +00:00
|
|
|
help="Convert to Opportunity" class="oe_highlight"/>
|
2012-12-18 13:46:29 +00:00
|
|
|
<field name="stage_id" widget="statusbar" clickable="True"
|
2013-03-21 11:26:47 +00:00
|
|
|
domain="['&', '|', ('case_default', '=', True), ('section_ids', '=', section_id), '|', ('type', '=', type), ('type', '=', 'both')]"
|
2013-11-27 09:53:00 +00:00
|
|
|
options="{'fold_field': 'fold'}"
|
2012-05-24 08:09:44 +00:00
|
|
|
on_change="onchange_stage_id(stage_id)"/>
|
2012-06-04 12:11:39 +00:00
|
|
|
</header>
|
2012-06-05 21:07:48 +00:00
|
|
|
<sheet>
|
2012-06-19 08:56:18 +00:00
|
|
|
<div class="oe_right oe_button_box" name="buttons">
|
2014-08-21 10:53:47 +00:00
|
|
|
<button class="oe_inline oe_stat_button" type="action"
|
2014-05-02 13:07:53 +00:00
|
|
|
context="{'default_opportunity_id': active_id, 'search_default_opportunity_id': active_id, 'default_partner_id': partner_id, 'default_duration': 1.0}"
|
|
|
|
name="%(crm.crm_case_categ_phone_incoming0)d" icon="fa-phone">
|
2014-04-14 10:48:19 +00:00
|
|
|
<div>Schedule/Log<br/>Calls</div>
|
|
|
|
</button>
|
2012-06-13 09:06:57 +00:00
|
|
|
</div>
|
2012-07-16 21:18:52 +00:00
|
|
|
<div class="oe_title">
|
2013-02-15 15:01:46 +00:00
|
|
|
<label for="name" class="oe_edit_only"/>
|
2012-07-16 21:18:52 +00:00
|
|
|
<h1><field name="name" placeholder="Describe the lead..."/></h1>
|
|
|
|
</div>
|
2012-06-05 21:07:48 +00:00
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="partner_name" string="Company Name"/>
|
2012-11-12 17:46:31 +00:00
|
|
|
<!-- Preload all the partner's information -->
|
2012-08-09 16:35:29 +00:00
|
|
|
<field name="partner_id" string="Customer"
|
2013-07-08 10:30:11 +00:00
|
|
|
on_change="on_change_partner_id(partner_id)"
|
2012-11-12 17:46:31 +00:00
|
|
|
options='{"create_name_field": "name"}'
|
2012-11-15 17:01:59 +00:00
|
|
|
context="{'default_name': contact_name, 'default_street': street, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_function': function, 'default_phone': phone, 'default_mobile': mobile, 'default_fax': fax, 'default_email': email_from, 'default_user_id': user_id, 'default_section_id': section_id}"/>
|
2012-06-05 21:07:48 +00:00
|
|
|
<label for="street" string="Address"/>
|
|
|
|
<div>
|
|
|
|
<field name="street" placeholder="Street..."/>
|
|
|
|
<field name="street2"/>
|
2012-08-08 07:24:53 +00:00
|
|
|
<div class="address_format">
|
|
|
|
<field name="city" placeholder="City" style="width: 40%%"/>
|
2012-10-25 09:42:31 +00:00
|
|
|
<field name="state_id" on_change="onchange_state(state_id)" options='{"no_open": True}' placeholder="State" style="width: 24%%"/>
|
2012-08-08 07:24:53 +00:00
|
|
|
<field name="zip" placeholder="ZIP" style="width: 34%%"/>
|
2012-06-05 21:07:48 +00:00
|
|
|
</div>
|
2015-02-05 11:48:48 +00:00
|
|
|
<field name="country_id" placeholder="Country" options='{"no_open": True, "no_create": True}'/>
|
2012-06-05 21:07:48 +00:00
|
|
|
</div>
|
|
|
|
</group>
|
|
|
|
<group>
|
2012-10-29 18:11:56 +00:00
|
|
|
<label for="contact_name"/>
|
2012-07-03 07:14:35 +00:00
|
|
|
<div>
|
2012-11-12 13:48:08 +00:00
|
|
|
<field name="contact_name" class="oe_inline"/><span attrs="{'invisible': [('title', '=', '')]}">, </span>
|
2012-10-09 14:34:33 +00:00
|
|
|
<field name="title" placeholder="Title" domain="[('domain', '=', 'contact')]" class="oe_inline" options='{"no_open": True}'/>
|
2012-07-03 07:14:35 +00:00
|
|
|
</div>
|
2012-06-05 21:07:48 +00:00
|
|
|
<field name="email_from" widget="email"/>
|
2012-10-29 18:11:56 +00:00
|
|
|
<field name="function"/>
|
2012-06-05 21:07:48 +00:00
|
|
|
<field name="phone"/>
|
|
|
|
<field name="mobile"/>
|
|
|
|
<field name="fax"/>
|
|
|
|
</group>
|
2012-08-03 08:18:26 +00:00
|
|
|
<group>
|
2013-04-11 12:44:46 +00:00
|
|
|
<field name="user_id" on_change="on_change_user(user_id, context)"
|
2013-09-04 14:11:22 +00:00
|
|
|
context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'base.group_sale_salesman_all_leads'] }"/>
|
2013-03-25 16:51:25 +00:00
|
|
|
<label for="section_id" groups="base.group_multi_salesteams"/>
|
|
|
|
<div groups="base.group_multi_salesteams">
|
2012-09-12 06:42:57 +00:00
|
|
|
<field name="section_id"/>
|
2013-06-04 09:10:14 +00:00
|
|
|
<button name="case_escalate" string="Escalate"
|
|
|
|
type="object" class="oe_link"
|
2013-07-16 15:10:03 +00:00
|
|
|
attrs="{'invisible': ['|', ('section_id','=',False), ('probability', '=', 100)]}"/>
|
2012-09-12 06:42:57 +00:00
|
|
|
</div>
|
2012-08-03 08:18:26 +00:00
|
|
|
<field name="type" invisible="1"/>
|
|
|
|
</group>
|
|
|
|
<group>
|
2014-02-21 12:21:21 +00:00
|
|
|
<field name="priority" widget="priority"/>
|
2012-08-03 08:18:26 +00:00
|
|
|
<field name="categ_ids"
|
|
|
|
widget="many2many_tags"
|
2013-03-07 10:33:49 +00:00
|
|
|
context="{'object_name': 'crm.lead'}"
|
|
|
|
/>
|
2012-08-03 08:18:26 +00:00
|
|
|
</group>
|
2011-11-30 09:40:11 +00:00
|
|
|
</group>
|
2012-06-05 21:07:48 +00:00
|
|
|
<notebook colspan="4">
|
2013-02-01 12:04:24 +00:00
|
|
|
<page string="Internal Notes">
|
2012-06-05 21:07:48 +00:00
|
|
|
<field name="description"/>
|
|
|
|
</page>
|
|
|
|
<page string="Extra Info">
|
|
|
|
<group>
|
2012-12-17 11:02:45 +00:00
|
|
|
<group string="Categorization" groups="base.group_multi_company,base.group_no_one" name="categorization">
|
2012-06-05 21:07:48 +00:00
|
|
|
<field name="company_id"
|
|
|
|
groups="base.group_multi_company"
|
2013-08-26 09:56:00 +00:00
|
|
|
widget="selection"/>
|
2012-06-05 21:07:48 +00:00
|
|
|
</group>
|
|
|
|
<group string="Mailings">
|
2012-10-29 18:11:56 +00:00
|
|
|
<field name="opt_out"/>
|
2013-08-06 15:11:43 +00:00
|
|
|
<field name="message_bounce"/>
|
2012-06-05 21:07:48 +00:00
|
|
|
</group>
|
2012-11-29 13:40:18 +00:00
|
|
|
<group string="Misc">
|
2013-07-16 15:10:03 +00:00
|
|
|
<field name="probability" groups="base.group_no_one"/>
|
2012-11-29 13:40:18 +00:00
|
|
|
<field name="active"/>
|
|
|
|
<field name="referred"/>
|
|
|
|
</group>
|
2013-07-16 15:10:03 +00:00
|
|
|
<group>
|
|
|
|
<field name="date_open" groups="base.group_no_one"/>
|
|
|
|
<field name="date_closed" groups="base.group_no_one"/>
|
|
|
|
</group>
|
2012-06-05 21:07:48 +00:00
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
2012-04-10 11:22:44 +00:00
|
|
|
</sheet>
|
2012-07-13 09:53:41 +00:00
|
|
|
<div class="oe_chatter">
|
2012-08-15 22:30:38 +00:00
|
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
2012-10-26 09:58:21 +00:00
|
|
|
<field name="message_ids" widget="mail_thread"/>
|
2012-07-13 09:53:41 +00:00
|
|
|
</div>
|
2009-12-04 14:15:17 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
2012-05-22 15:07:35 +00:00
|
|
|
</record>
|
2010-03-22 10:40:26 +00:00
|
|
|
|
2012-08-04 18:46:05 +00:00
|
|
|
<!-- CRM Lead Graph View -->
|
|
|
|
<record model="ir.ui.view" id="crm_case_graph_view_leads">
|
|
|
|
<field name="name">Opportunities</field>
|
|
|
|
<field name="model">crm.lead</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="Opportunities" type="bar">
|
2013-12-24 10:26:50 +00:00
|
|
|
<field name="stage_id" type="row"/>
|
|
|
|
<field name="planned_revenue" type="measure"/>
|
2012-08-04 18:46:05 +00:00
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2012-05-24 08:09:44 +00:00
|
|
|
<!-- CRM Lead Tree View -->
|
|
|
|
<record model="ir.ui.view" id="crm_case_tree_view_leads">
|
|
|
|
<field name="name">Leads</field>
|
|
|
|
<field name="model">crm.lead</field>
|
|
|
|
<field name="arch" type="xml">
|
2013-07-16 15:10:03 +00:00
|
|
|
<tree string="Leads" fonts="bold:message_unread==True" colors="grey:probability == 100">
|
2012-05-24 08:09:44 +00:00
|
|
|
<field name="date_deadline" invisible="1"/>
|
2013-02-15 01:52:38 +00:00
|
|
|
<field name="create_date"/>
|
2012-06-03 11:46:24 +00:00
|
|
|
<field name="name"/>
|
2012-05-24 08:09:44 +00:00
|
|
|
<field name="contact_name"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<field name="country_id"/>
|
2012-05-24 08:09:44 +00:00
|
|
|
<field name="email_from"/>
|
|
|
|
<field name="phone"/>
|
|
|
|
<field name="stage_id"/>
|
2012-07-04 06:26:34 +00:00
|
|
|
<field name="user_id" invisible="1"/>
|
2013-02-01 18:04:45 +00:00
|
|
|
<field name="partner_id" invisible="1"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<field name="section_id" groups="base.group_multi_salesteams"/>
|
2013-07-16 15:10:03 +00:00
|
|
|
<field name="probability" invisible="1"/>
|
2014-07-08 15:33:00 +00:00
|
|
|
<field name="campaign_id" invisible="1"/>
|
2012-05-24 08:09:44 +00:00
|
|
|
<field name="referred" invisible="1"/>
|
2014-07-08 15:33:00 +00:00
|
|
|
<field name="medium_id" invisible="1"/>
|
2012-08-16 09:26:16 +00:00
|
|
|
<field name="message_unread" invisible="1"/>
|
2012-05-24 08:09:44 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-22 10:40:26 +00:00
|
|
|
|
2013-02-01 18:04:45 +00:00
|
|
|
|
2012-05-24 08:09:44 +00:00
|
|
|
<!-- CRM Lead Calendar View -->
|
|
|
|
<record model="ir.ui.view" id="crm_case_calendar_view_leads">
|
|
|
|
<field name="name">CRM - Leads Calendar</field>
|
|
|
|
<field name="model">crm.lead</field>
|
|
|
|
<field name="priority" eval="2"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar string="Leads Generation"
|
|
|
|
date_start="date_action" color="user_id">
|
2012-10-29 18:11:56 +00:00
|
|
|
<field name="name"/>
|
|
|
|
<field name="partner_name"/>
|
2012-05-24 08:09:44 +00:00
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-12-04 14:15:17 +00:00
|
|
|
|
2012-08-09 16:35:29 +00:00
|
|
|
<!-- CRM Lead Kanban View -->
|
|
|
|
<record model="ir.ui.view" id="crm_case_kanban_view_leads">
|
|
|
|
<field name="name">CRM - Leads Kanban</field>
|
|
|
|
<field name="model">crm.lead</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<kanban default_group_by="stage_id">
|
2012-08-16 16:31:05 +00:00
|
|
|
<field name="stage_id"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
<field name="color"/>
|
|
|
|
<field name="priority"/>
|
|
|
|
<field name="planned_revenue" sum="Expected Revenues"/>
|
|
|
|
<field name="user_email"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="partner_address_email"/>
|
|
|
|
<field name="message_summary"/>
|
2012-08-16 09:26:16 +00:00
|
|
|
<field name="message_unread"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
<templates>
|
2012-09-07 07:29:49 +00:00
|
|
|
<field name="date_deadline"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
<t t-name="kanban-box">
|
|
|
|
<div t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)} oe_kanban_card oe_kanban_global_click">
|
2012-09-06 10:46:24 +00:00
|
|
|
<div class="oe_dropdown_toggle oe_dropdown_kanban">
|
2012-08-09 16:35:29 +00:00
|
|
|
<span class="oe_e">í</span>
|
|
|
|
<ul class="oe_dropdown_menu">
|
2012-09-04 14:12:04 +00:00
|
|
|
<t t-if="widget.view.is_action_enabled('edit')"><li><a type="edit">Edit...</a></li></t>
|
|
|
|
<t t-if="widget.view.is_action_enabled('delete')"><li><a type="delete">Delete</a></li></t>
|
2012-08-09 16:35:29 +00:00
|
|
|
<li><a name="%(mail.action_email_compose_message_wizard)d" type="action">Send Email</a></li>
|
2013-08-22 09:22:59 +00:00
|
|
|
<li><a type="action" name="%(crm.crm_case_categ_phone_incoming0)d" >Calls</a></li>
|
2014-04-17 14:56:45 +00:00
|
|
|
<li><a name="action_schedule_meeting" type="object">Schedule Meeting</a></li>
|
2012-08-09 16:35:29 +00:00
|
|
|
<li><ul class="oe_kanban_colorpicker" data-field="color"/></li>
|
|
|
|
</ul>
|
2012-05-18 16:45:17 +00:00
|
|
|
</div>
|
2012-08-09 16:35:29 +00:00
|
|
|
<div class="oe_kanban_content">
|
|
|
|
<div>
|
|
|
|
<b><field name="name"/></b>
|
|
|
|
<t t-if="record.planned_revenue.raw_value">
|
2012-11-22 10:45:23 +00:00
|
|
|
- <b><t t-esc="record.planned_revenue.value"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
<field name="company_currency"/></b>
|
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
</div>
|
|
|
|
<div style="padding-left: 0.5em">
|
2015-07-24 13:58:20 +00:00
|
|
|
<t t-if="record.date_action.raw_value and record.date_action.raw_value lt (new Date())" t-set="red">oe_kanban_text_red</t>
|
2012-08-09 16:35:29 +00:00
|
|
|
<span t-attf-class="#{red || ''}"><field name="date_action"/></span>
|
|
|
|
<t t-if="record.date_action.raw_value"> : </t>
|
|
|
|
<field name="title_action"/>
|
|
|
|
</div>
|
|
|
|
<div class="oe_kanban_bottom_right">
|
2014-05-08 14:31:28 +00:00
|
|
|
<img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar pull-right"/>
|
2014-05-08 15:25:36 +00:00
|
|
|
<div class="pull-left" groups="base.group_user">
|
2014-05-08 14:31:28 +00:00
|
|
|
<field name="priority" widget="priority"/>
|
|
|
|
</div>
|
2012-08-09 16:35:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe_kanban_footer_left">
|
|
|
|
<t t-raw="record.message_summary.raw_value"/>
|
|
|
|
</div>
|
2011-09-06 13:04:29 +00:00
|
|
|
</div>
|
2012-08-09 16:35:29 +00:00
|
|
|
<div class="oe_clear"></div>
|
2011-09-06 13:04:29 +00:00
|
|
|
</div>
|
2012-08-09 16:35:29 +00:00
|
|
|
</t>
|
|
|
|
</templates>
|
|
|
|
</kanban>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-12-04 14:15:17 +00:00
|
|
|
|
2012-08-09 16:35:29 +00:00
|
|
|
<!-- CRM Lead Search View -->
|
|
|
|
<record id="view_crm_case_leads_filter" model="ir.ui.view">
|
|
|
|
<field name="name">CRM - Leads Search</field>
|
|
|
|
<field name="model">crm.lead</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Leads">
|
2013-04-29 05:17:45 +00:00
|
|
|
<field name="name" string="Lead / Customer" filter_domain="['|','|','|',('partner_name','ilike',self),('email_from','ilike',self),('contact_name','ilike',self),('name','ilike',self)]"/>
|
2014-02-26 13:32:22 +00:00
|
|
|
<field name="categ_ids" string="Tag" filter_domain="[('categ_ids', 'ilike', self)]"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<field name="section_id" groups="base.group_multi_salesteams"/>
|
2013-02-01 18:04:45 +00:00
|
|
|
<field name="user_id"/>
|
2014-04-22 15:07:10 +00:00
|
|
|
<field name="partner_id" operator="child_of"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
<field name="create_date"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<field name="country_id"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
<separator/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<filter string="My Leads"
|
|
|
|
domain="[('user_id','=',uid)]"
|
|
|
|
help="Leads that are assigned to me"/>
|
2013-07-16 15:10:03 +00:00
|
|
|
<filter string="Unassigned" name="unassigned"
|
|
|
|
domain="[('user_id','=', False)]"
|
|
|
|
help="No salesperson"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<separator />
|
|
|
|
<filter string="New Mail" name="message_unread" domain="[('message_unread','=',True)]"/>
|
2013-03-13 11:59:01 +00:00
|
|
|
<separator />
|
2013-03-13 12:51:24 +00:00
|
|
|
<filter string="Available for mass mailing"
|
|
|
|
name='not_opt_out' domain="[('opt_out', '=', False)]"
|
2013-03-13 11:20:13 +00:00
|
|
|
help="Leads that did not ask not to be included in mass mailing campaigns"/>
|
2014-05-22 09:44:35 +00:00
|
|
|
<group expand="0" string="Group By">
|
2013-02-01 17:50:01 +00:00
|
|
|
<filter string="Salesperson" domain="[]" context="{'group_by':'user_id'}"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<filter string="Sales Team" domain="[]" context="{'group_by':'section_id'}" groups="base.group_multi_salesteams"/>
|
2013-02-01 17:50:01 +00:00
|
|
|
<filter string="Stage" domain="[]" context="{'group_by':'stage_id'}"/>
|
2013-02-01 18:04:45 +00:00
|
|
|
<filter string="Customer" help="Partner" domain="[]" context="{'group_by':'partner_id'}"/>
|
2014-07-29 12:46:45 +00:00
|
|
|
<filter string="Campaign" domain="[]" context="{'group_by':'campaign_id'}"/>
|
|
|
|
<filter string="Source" domain="[]" context="{'group_by':'source_id'}"/>
|
|
|
|
<filter string="Channel" domain="[]" context="{'group_by':'medium_id'}"/>
|
2014-08-29 13:52:09 +00:00
|
|
|
<filter string="Creation Month" domain="[]" context="{'group_by':'create_date'}"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<filter string="Last Message" name="group_message_last_post" domain="[]" context="{'group_by':'message_last_post:week'}"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
</group>
|
2013-02-01 18:04:45 +00:00
|
|
|
</search>
|
2012-08-09 16:35:29 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2011-08-25 04:10:37 +00:00
|
|
|
|
|
|
|
|
2012-08-09 16:35:29 +00:00
|
|
|
<!--
|
|
|
|
OPPORTUNITY
|
2012-05-24 08:35:31 +00:00
|
|
|
-->
|
|
|
|
|
2012-08-09 16:35:29 +00:00
|
|
|
<!-- Opportunities Form View -->
|
|
|
|
<record model="ir.ui.view" id="crm_case_form_view_oppor">
|
|
|
|
<field name="name">Opportunities</field>
|
|
|
|
<field name="model">crm.lead</field>
|
|
|
|
<field name="priority">20</field>
|
|
|
|
<field name="arch" type="xml">
|
2014-06-12 07:09:59 +00:00
|
|
|
<form string="Opportunities">
|
2012-08-09 16:35:29 +00:00
|
|
|
<header>
|
2015-05-07 16:16:28 +00:00
|
|
|
<button name="case_mark_won" string="Mark Won" attrs="{'invisible': [('probability', '=', 100)]}" type="object" class="oe_highlight"/>
|
|
|
|
<button name="case_mark_lost" string="Mark Lost" attrs="{'invisible': [('probability', '=', 100)]}" type="object" class="oe_highlight"/>
|
2013-07-16 15:10:03 +00:00
|
|
|
<field name="stage_id" widget="statusbar" clickable="True"
|
2013-11-27 09:53:00 +00:00
|
|
|
options="{'fold_field': 'fold'}"
|
|
|
|
domain="['&', ('section_ids', '=', section_id), '|', ('type', '=', type), ('type', '=', 'both')]"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
</header>
|
|
|
|
<sheet>
|
|
|
|
<div class="oe_right oe_button_box">
|
2014-08-21 10:53:47 +00:00
|
|
|
<button class="oe_inline oe_stat_button" type="action"
|
2014-05-02 13:07:53 +00:00
|
|
|
name="%(crm.crm_case_categ_phone_incoming0)d" icon="fa-phone"
|
2014-05-02 13:22:58 +00:00
|
|
|
context="{'default_opportunity_id': active_id, 'search_default_opportunity_id': active_id, 'default_partner_id': partner_id, 'default_duration': 1.0}">
|
2014-04-14 10:48:19 +00:00
|
|
|
<div>Schedule/Log<br/>Calls</div>
|
|
|
|
</button>
|
2014-08-21 10:53:47 +00:00
|
|
|
<button class="oe_inline oe_stat_button" type="object"
|
2014-05-02 13:07:53 +00:00
|
|
|
context="{'partner_id': partner_id}"
|
|
|
|
name="action_schedule_meeting" icon="fa-calendar">
|
2014-03-28 13:30:51 +00:00
|
|
|
<field string="Meetings" name="meeting_count" widget="statinfo"/>
|
2014-03-24 05:09:21 +00:00
|
|
|
</button>
|
2012-08-09 16:35:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe_title">
|
|
|
|
<label for="name" class="oe_edit_only"/>
|
|
|
|
<h1><field name="name"/></h1>
|
|
|
|
<label for="planned_revenue" class="oe_edit_only"/>
|
|
|
|
<h2>
|
2012-11-24 17:53:19 +00:00
|
|
|
<field name="company_currency" invisible="1"/>
|
|
|
|
<field name="planned_revenue" class="oe_inline" widget='monetary' options="{'currency_field': 'company_currency'}"/>
|
|
|
|
<span class="oe_grey"> at </span>
|
|
|
|
<field name="probability" class="oe_inline" widget="integer"/>%%
|
2012-08-09 16:35:29 +00:00
|
|
|
</h2>
|
|
|
|
</div>
|
2012-06-01 15:33:23 +00:00
|
|
|
<group>
|
|
|
|
<group>
|
2012-08-09 16:35:29 +00:00
|
|
|
<field name="partner_id"
|
2013-07-26 08:54:26 +00:00
|
|
|
on_change="on_change_partner_id(partner_id)"
|
2012-08-09 16:35:29 +00:00
|
|
|
string="Customer"
|
|
|
|
context="{'default_name': partner_name, 'default_email': email_from, 'default_phone': phone}"/>
|
2013-12-06 10:20:51 +00:00
|
|
|
<field name="email_from" string="Email" widget="email"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
<field name="phone"/>
|
2012-05-31 15:14:06 +00:00
|
|
|
</group>
|
2012-06-01 15:33:23 +00:00
|
|
|
|
|
|
|
<group>
|
2012-08-09 16:35:29 +00:00
|
|
|
<label for="title_action"/>
|
2012-07-03 07:14:35 +00:00
|
|
|
<div>
|
2012-08-09 16:35:29 +00:00
|
|
|
<field name="date_action" nolabel="1"/> <label string="-" attrs="{'invisible': ['|', ('date_action', '=', False), ('title_action', '=', False)]}"/>
|
|
|
|
<field name="title_action" class="oe_inline" nolabel="1" placeholder="e.g. Call for proposal"/>
|
2012-07-03 07:14:35 +00:00
|
|
|
</div>
|
2012-08-09 16:35:29 +00:00
|
|
|
<field name="date_deadline"/>
|
2014-02-21 12:21:21 +00:00
|
|
|
<field name="priority" widget="priority"/>
|
2012-05-31 15:14:06 +00:00
|
|
|
</group>
|
|
|
|
|
2012-08-09 16:35:29 +00:00
|
|
|
<group>
|
2013-09-04 14:11:22 +00:00
|
|
|
<field name="user_id" on_change="on_change_user(user_id, context)" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'base.group_sale_salesman_all_leads']}"/>
|
2013-03-25 16:51:25 +00:00
|
|
|
<label for="section_id" groups="base.group_multi_salesteams"/>
|
|
|
|
<div groups="base.group_multi_salesteams">
|
2012-09-12 06:42:57 +00:00
|
|
|
<field name="section_id" widget="selection"/>
|
2013-07-16 15:10:03 +00:00
|
|
|
<button name="case_escalate" string="Escalate" type="object" class="oe_link"
|
|
|
|
attrs="{'invisible': ['|', ('section_id','=',False), ('probability', '=', 100)]}"/>
|
2012-09-12 06:42:57 +00:00
|
|
|
</div>
|
2012-05-31 15:14:06 +00:00
|
|
|
</group>
|
2012-08-09 16:35:29 +00:00
|
|
|
<group>
|
|
|
|
<field name="categ_ids"
|
2014-01-23 10:00:58 +00:00
|
|
|
widget="many2many_tags"
|
2015-08-12 15:34:51 +00:00
|
|
|
context="{'object_name': 'crm.lead'}"/>
|
2012-05-31 15:14:06 +00:00
|
|
|
</group>
|
2012-08-09 16:35:29 +00:00
|
|
|
</group>
|
|
|
|
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Internal Notes">
|
|
|
|
<field name="description"/>
|
|
|
|
</page>
|
|
|
|
<page string="Lead">
|
|
|
|
<group>
|
|
|
|
<group>
|
|
|
|
<field name="partner_name"/>
|
|
|
|
<label for="street" string="Address"/>
|
|
|
|
<div>
|
|
|
|
<field name="street" placeholder="Street..."/>
|
|
|
|
<field name="street2"/>
|
|
|
|
<div class="address_format">
|
|
|
|
<field name="city" placeholder="City" style="width: 40%%"/>
|
2012-10-25 10:59:50 +00:00
|
|
|
<field name="state_id" options='{"no_open": True}' on_change="onchange_state(state_id)" placeholder="State" style="width: 24%%"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
<field name="zip" placeholder="ZIP" style="width: 34%%"/>
|
|
|
|
</div>
|
2015-02-05 11:48:48 +00:00
|
|
|
<field name="country_id" placeholder="Country" options='{"no_open": True, "no_create": True}'/>
|
2012-08-09 16:35:29 +00:00
|
|
|
</div>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<group>
|
2012-10-29 18:11:56 +00:00
|
|
|
<label for="contact_name"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
<div>
|
2012-08-10 14:08:56 +00:00
|
|
|
<field name="contact_name" class="oe_inline"/>
|
2012-10-09 14:34:33 +00:00
|
|
|
<field name="title" placeholder="Title" domain="[('domain', '=', 'contact')]" options='{"no_open": True}' class="oe_inline"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
</div>
|
2012-10-29 18:11:56 +00:00
|
|
|
<field name="function"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
<field name="mobile"/>
|
|
|
|
<field name="fax"/>
|
|
|
|
</group>
|
2012-12-17 11:02:45 +00:00
|
|
|
<group string="Mailings" name="mailings">
|
2012-10-29 18:11:56 +00:00
|
|
|
<field name="opt_out"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
</group>
|
|
|
|
<group string="Misc">
|
|
|
|
<field name="active"/>
|
|
|
|
<field name="day_open" groups="base.group_no_one"/>
|
|
|
|
<field name="day_close" groups="base.group_no_one"/>
|
|
|
|
<field name="referred"/>
|
|
|
|
<field name="type" invisible="1"/>
|
|
|
|
</group>
|
|
|
|
<group string="References">
|
|
|
|
<field name="ref"/>
|
|
|
|
<field name="ref2"/>
|
|
|
|
</group>
|
2012-05-31 15:14:06 +00:00
|
|
|
</group>
|
2012-08-09 16:35:29 +00:00
|
|
|
</page>
|
|
|
|
<page string="Fund Raising" groups="crm.group_fund_raising">
|
|
|
|
<group>
|
|
|
|
<field name="payment_mode" widget="selection"/>
|
|
|
|
<field name="planned_cost"/>
|
2012-05-31 15:14:06 +00:00
|
|
|
</group>
|
2012-08-09 16:35:29 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</sheet>
|
|
|
|
<div class="oe_chatter">
|
2012-08-15 22:30:38 +00:00
|
|
|
<field name="message_follower_ids" widget="mail_followers"/>
|
2012-10-26 09:58:21 +00:00
|
|
|
<field name="message_ids" widget="mail_thread"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-08-25 04:10:37 +00:00
|
|
|
|
2012-05-24 08:35:31 +00:00
|
|
|
<!-- Opportunities Tree View -->
|
|
|
|
<record model="ir.ui.view" id="crm_case_tree_view_oppor">
|
|
|
|
<field name="name">Opportunities Tree</field>
|
|
|
|
<field name="model">crm.lead</field>
|
|
|
|
<field name="arch" type="xml">
|
2013-07-16 15:10:03 +00:00
|
|
|
<tree string="Opportunities" fonts="bold:message_unread==True" colors="gray:probability == 100;red:date_deadline and (date_deadline < current_date)">
|
2012-05-24 08:35:31 +00:00
|
|
|
<field name="date_deadline" invisible="1"/>
|
2013-02-15 01:58:05 +00:00
|
|
|
<field name="create_date"/>
|
2012-05-24 08:35:31 +00:00
|
|
|
<field name="name" string="Opportunity"/>
|
|
|
|
<field name="partner_id" string="Customer"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<field name="country_id"/>
|
2012-05-24 08:35:31 +00:00
|
|
|
<field name="date_action"/>
|
2012-10-29 18:11:56 +00:00
|
|
|
<field name="title_action"/>
|
2014-07-08 15:33:00 +00:00
|
|
|
<field name="medium_id" invisible="1"/>
|
|
|
|
<field name="campaign_id" invisible="1"/>
|
|
|
|
<field name="source_id" invisible="1"/>
|
2012-05-24 08:35:31 +00:00
|
|
|
<field name="stage_id"/>
|
|
|
|
<field name="planned_revenue" sum="Expected Revenues"/>
|
2013-01-04 10:24:58 +00:00
|
|
|
<field name="probability" avg="Avg. of Probability"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<field name="section_id" groups="base.group_multi_salesteams"/>
|
2012-05-24 08:35:31 +00:00
|
|
|
<field name="user_id"/>
|
2013-02-01 17:50:01 +00:00
|
|
|
<field name="referred" invisible="1"/>
|
2012-05-24 08:35:31 +00:00
|
|
|
<field name="priority" invisible="1"/>
|
2012-08-16 09:26:16 +00:00
|
|
|
<field name="message_unread" invisible="1"/>
|
2013-07-16 15:10:03 +00:00
|
|
|
<field name="probability" invisible="1"/>
|
|
|
|
<field name="write_date" invisible="1"/>
|
2012-05-24 08:35:31 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-08-25 04:10:37 +00:00
|
|
|
|
2012-08-09 16:35:29 +00:00
|
|
|
<!-- Opportunities Search View -->
|
|
|
|
<record id="view_crm_case_opportunities_filter" model="ir.ui.view">
|
|
|
|
<field name="name">CRM - Opportunities Search</field>
|
|
|
|
<field name="model">crm.lead</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Opportunities">
|
2013-02-01 17:50:01 +00:00
|
|
|
<field name="name" string="Opportunity" filter_domain="['|','|','|',('partner_id','ilike',self),('partner_name','ilike',self),('email_from','ilike',self),('name', 'ilike', self)]"/>
|
2014-02-26 13:32:22 +00:00
|
|
|
<field name="categ_ids" string="Tag" filter_domain="[('categ_ids', 'ilike', self)]"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<field name="section_id" groups="base.group_multi_salesteams"/>
|
2013-02-01 17:50:01 +00:00
|
|
|
<field name="user_id"/>
|
2014-04-22 15:07:10 +00:00
|
|
|
<field name="partner_id" operator="child_of"/>
|
2013-07-17 14:13:36 +00:00
|
|
|
<field name="stage_id" domain="[]"/>
|
2013-07-16 15:10:03 +00:00
|
|
|
<field name="probability"/>
|
2013-02-01 17:50:01 +00:00
|
|
|
<separator/>
|
2014-08-21 10:53:47 +00:00
|
|
|
<filter string="New" name="new"
|
2014-11-20 10:25:49 +00:00
|
|
|
domain="['&', ('stage_id.probability', '=', 0), ('stage_id.sequence', '<=', 1)]"/>
|
2013-07-16 15:10:03 +00:00
|
|
|
<filter string="Won" name="won"
|
2014-11-20 10:25:49 +00:00
|
|
|
domain="['&', ('stage_id.probability', '=', 100), ('stage_id.fold', '=', True)]"/>
|
2013-07-16 15:10:03 +00:00
|
|
|
<filter string="Lost" name="lost"
|
2014-11-20 10:25:49 +00:00
|
|
|
domain="['&', ('stage_id.probability', '=', 0), ('stage_id.fold', '=', True)]"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<separator/>
|
2013-06-04 10:56:48 +00:00
|
|
|
<filter string="My Opportunities" name="assigned_to_me"
|
2014-07-01 08:32:01 +00:00
|
|
|
domain="[('user_id', '=', uid)]"
|
2013-02-01 17:50:01 +00:00
|
|
|
help="Opportunities that are assigned to me"/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<filter string="Unassigned" name="unassigned"
|
|
|
|
domain="[('user_id','=', False)]" help="No salesperson"/>
|
2013-02-01 17:50:01 +00:00
|
|
|
<separator/>
|
2014-07-01 08:32:01 +00:00
|
|
|
<filter string="New Mail" name="message_unread" domain="[('message_unread','=',True)]"/>
|
2014-05-22 09:44:35 +00:00
|
|
|
<group expand="0" string="Group By" colspan="16">
|
2014-08-21 10:53:47 +00:00
|
|
|
<filter string="Salesperson" context="{'group_by':'user_id'}"/>
|
|
|
|
<filter string="Sales Team" context="{'group_by':'section_id'}" groups="base.group_multi_salesteams"/>
|
|
|
|
<filter string="Country" context="{'group_by':'country_id'}" />
|
|
|
|
<filter string="Company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
|
|
|
<filter string="Stage" context="{'group_by':'stage_id'}"/>
|
2014-08-26 13:06:51 +00:00
|
|
|
<filter string="Campaign" domain="[]" context="{'group_by':'campaign_id'}"/>
|
|
|
|
<filter string="Channel" domain="[]" context="{'group_by':'medium_id'}"/>
|
|
|
|
<filter string="Source" domain="[]" context="{'group_by':'source_id'}"/>
|
2014-08-21 10:53:47 +00:00
|
|
|
<separator orientation="vertical" />
|
|
|
|
<filter string="Creation Month" context="{'group_by':'create_date:month'}" name="month"/>
|
|
|
|
<filter string="Expected Closing" context="{'group_by':'date_deadline'}"/>
|
2012-08-09 16:35:29 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-08-25 04:10:37 +00:00
|
|
|
|
2013-02-25 16:48:57 +00:00
|
|
|
<!--
|
|
|
|
MASS MAILING
|
|
|
|
-->
|
2013-03-12 13:38:47 +00:00
|
|
|
<act_window name="Lead/Opportunity Mass Mail"
|
2013-02-25 16:48:57 +00:00
|
|
|
res_model="mail.compose.message"
|
|
|
|
src_model="crm.lead"
|
|
|
|
view_mode="form"
|
|
|
|
multi="True"
|
|
|
|
target="new"
|
|
|
|
key2="client_action_multi"
|
|
|
|
id="crm.action_lead_mass_mail"
|
|
|
|
context="{
|
|
|
|
'default_composition_mode': 'mass_mail',
|
2013-11-22 19:44:15 +00:00
|
|
|
'default_email_to':'{($object.email or \'\')|safe}',
|
2013-03-12 13:38:47 +00:00
|
|
|
'default_use_template': True,
|
2013-03-19 09:18:44 +00:00
|
|
|
'default_template_id': ref('crm.email_template_opportunity_mail'),
|
2013-06-20 17:53:26 +00:00
|
|
|
}"
|
|
|
|
groups="base.group_sale_salesman"
|
|
|
|
/>
|
2013-02-25 16:48:57 +00:00
|
|
|
|
2013-03-14 11:02:39 +00:00
|
|
|
<!--Update of email_template defined in crm_lead_data, to add ref_ir_act_window
|
|
|
|
allowing to have a well formed email template (context action considered as set). -->
|
2013-03-19 09:18:44 +00:00
|
|
|
<record id="email_template_opportunity_mail" model="email.template">
|
2013-03-12 13:38:47 +00:00
|
|
|
<field name="ref_ir_act_window" ref="crm.action_lead_mass_mail"/>
|
|
|
|
</record>
|
|
|
|
|
2013-05-16 12:20:12 +00:00
|
|
|
<record id="action_mark_as_lost" model="ir.actions.server">
|
|
|
|
<field name="name">Mark As Lost</field>
|
|
|
|
<field name="model_id" ref="model_crm_lead"/>
|
|
|
|
<field name="state">code</field>
|
|
|
|
<field name="code">
|
|
|
|
if context.get('active_model') == 'crm.lead' and context.get('active_ids'):
|
2013-07-08 10:30:11 +00:00
|
|
|
self.case_mark_lost(cr, uid, context['active_ids'], context=context)
|
2013-05-16 12:20:12 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="ir_mark_as_lost" model="ir.values">
|
|
|
|
<field eval="'client_action_multi'" name="key2"/>
|
|
|
|
<field eval="'crm.lead'" name="model"/>
|
|
|
|
<field name="name">Mark As Lost</field>
|
|
|
|
<field eval="'ir.actions.server,%d'%action_mark_as_lost" name="value"/>
|
|
|
|
</record>
|
|
|
|
|
2012-05-24 08:35:31 +00:00
|
|
|
</data>
|
2009-12-04 14:15:17 +00:00
|
|
|
</openerp>
|