2009-12-04 14:15:17 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
2010-03-22 10:40:26 +00:00
|
|
|
<!--Lead Stage Form view -->
|
2010-02-02 06:39:40 +00:00
|
|
|
|
2010-02-19 17:15:16 +00:00
|
|
|
<record id="crm_lead_stage_act" model="ir.actions.act_window">
|
|
|
|
<field name="name">Lead 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"/>
|
|
|
|
<field name="domain">[('object_id.model', '=', 'crm.lead')]</field>
|
|
|
|
<field name="context">{'object_id':'crm.lead'}</field>
|
|
|
|
</record>
|
2010-03-22 10:40:26 +00:00
|
|
|
<menuitem action="crm_lead_stage_act" id="menu_crm_lead_stage_act"
|
2010-04-18 15:32:44 +00:00
|
|
|
groups="base.group_extended"
|
2010-04-06 16:15:10 +00:00
|
|
|
parent="crm.menu_crm_case_stage" />
|
2010-03-22 10:40:26 +00:00
|
|
|
|
|
|
|
<!-- Resource Type Form View -->
|
|
|
|
|
2010-03-05 12:43:16 +00:00
|
|
|
<record id="crm_lead_resource_act" model="ir.actions.act_window">
|
2010-03-05 15:42:53 +00:00
|
|
|
<field name="name">Lead Resource Type</field>
|
2010-03-05 12:43:16 +00:00
|
|
|
<field name="res_model">crm.case.resource.type</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="crm.crm_case_resource_type_tree"/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<field name="domain">[('object_id.model', '=', 'crm.lead')]</field>
|
|
|
|
<field name="context">{'object_id':'crm.lead'}</field>
|
2010-03-05 12:43:16 +00:00
|
|
|
</record>
|
2010-03-22 10:40:26 +00:00
|
|
|
<menuitem action="crm_lead_resource_act"
|
2010-04-06 16:15:10 +00:00
|
|
|
id="menu_crm_lead_resource_act"
|
2010-04-18 15:32:44 +00:00
|
|
|
groups="base.group_extended"
|
2010-04-06 16:15:10 +00:00
|
|
|
parent="crm.menu_crm_case_resource_type" />
|
2010-03-05 12:43:16 +00:00
|
|
|
|
2010-03-22 10:40:26 +00:00
|
|
|
<!-- CRM Lead Form View -->
|
2010-02-19 17:15:16 +00:00
|
|
|
|
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="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2009-12-08 07:25:05 +00:00
|
|
|
<form string="Leads Form">
|
2010-03-04 10:36:46 +00:00
|
|
|
<group colspan="4" col="7">
|
2010-03-17 04:30:34 +00:00
|
|
|
<field name="name" required="1"/>
|
2010-03-04 06:39:52 +00:00
|
|
|
<field name="priority"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<field name="date_deadline"/>
|
2010-03-04 10:36:46 +00:00
|
|
|
<button
|
2010-04-18 15:32:44 +00:00
|
|
|
name="convert_opportunity"
|
|
|
|
string="Convert"
|
|
|
|
help="Convert to Opportunity"
|
|
|
|
icon="gtk-index"
|
|
|
|
type="object"
|
|
|
|
attrs="{'invisible':[('opportunity_id','!=',False)]}"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<newline />
|
|
|
|
<field name="section_id" colspan="1"
|
2010-04-06 16:15:10 +00:00
|
|
|
widget="selection" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<field name="user_id" />
|
|
|
|
<field name="stage_id" widget="selection"
|
2010-04-06 16:15:10 +00:00
|
|
|
domain="[('object_id.model', '=', 'crm.lead')]" />
|
2010-03-04 10:36:46 +00:00
|
|
|
<group col="2" colspan="1">
|
2010-04-06 16:15:10 +00:00
|
|
|
<button name="stage_previous" string="Previous"
|
|
|
|
states="open,pending" type="object"
|
|
|
|
icon="gtk-go-back" />
|
|
|
|
<button name="stage_next" string="Next"
|
|
|
|
states="open,pending" type="object"
|
|
|
|
icon="gtk-go-forward" />
|
2010-03-04 10:36:46 +00:00
|
|
|
</group>
|
2010-02-19 17:15:16 +00:00
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
2010-02-28 13:21:56 +00:00
|
|
|
<page string="Lead">
|
|
|
|
<group colspan="2" col="4">
|
|
|
|
<separator string="Contact" colspan="4" col="4"/>
|
2010-03-17 04:30:34 +00:00
|
|
|
<field name="partner_name" string="Contact Name" colspan="4"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<newline/>
|
|
|
|
<field domain="[('domain', '=', 'contact')]" name="title"/>
|
2010-03-16 16:24:54 +00:00
|
|
|
<field name="function_name" />
|
2010-02-28 13:21:56 +00:00
|
|
|
<field name="street" colspan="4"/>
|
|
|
|
<field name="street2" colspan="4"/>
|
|
|
|
<field name="zip"/>
|
|
|
|
<field name="city"/>
|
|
|
|
<field name="country_id"/>
|
|
|
|
<field name="state_id"/>
|
2010-02-03 13:10:02 +00:00
|
|
|
</group>
|
2010-02-28 13:21:56 +00:00
|
|
|
<group colspan="2" col="3">
|
|
|
|
<separator string="Communication" colspan="4" col="3"/>
|
2010-03-17 04:30:34 +00:00
|
|
|
<field name="email_from" widget="email"/>
|
|
|
|
<newline/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<field name="phone"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="fax"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="mobile"/>
|
|
|
|
<newline/>
|
|
|
|
<separator string="Links" colspan="4" col="3"/>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<button
|
2010-03-22 10:40:26 +00:00
|
|
|
name="%(action_crm_lead2partner)d"
|
2010-02-28 13:21:56 +00:00
|
|
|
icon="gtk-index" type="action"
|
|
|
|
string="Create"
|
|
|
|
attrs="{'invisible':[('partner_id','!=',False)]}"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<field name="opportunity_id"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
</group>
|
|
|
|
<separator colspan="4" string="Notes"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="description" nolabel="1" colspan="4"/>
|
|
|
|
<separator colspan="4"/>
|
|
|
|
<group col="8" colspan="4">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="state"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_close" string="Close"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="open,draft,pending" type="object"
|
|
|
|
icon="gtk-close" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_open" string="Open"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="draft,pending" type="object"
|
|
|
|
icon="gtk-go-forward" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_cancel" string="Cancel"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="draft,open,pending" type="object"
|
|
|
|
icon="gtk-cancel" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_pending" string="Pending"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="draft,open" type="object"
|
|
|
|
icon="gtk-media-pause" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_escalate" string="Escalate"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="open,draft,pending" type="object"
|
|
|
|
icon="gtk-go-up" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_reset"
|
2010-04-06 16:15:10 +00:00
|
|
|
string="Reset to Draft" states="done,cancel"
|
|
|
|
type="object" icon="gtk-convert" />
|
2010-02-19 17:15:16 +00:00
|
|
|
</group>
|
|
|
|
</page>
|
2010-02-28 13:21:56 +00:00
|
|
|
<page string="Extra Info" groups="base.group_extended">
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Categories" colspan="2" col="2"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<field name="company_id"
|
2010-04-06 16:15:10 +00:00
|
|
|
groups="base.group_multi_company"
|
|
|
|
widget="selection" colspan="2" />
|
2010-02-28 13:21:56 +00:00
|
|
|
<field name="categ_id"
|
|
|
|
widget="selection"
|
|
|
|
domain="[('object_id.model', '=', 'crm.opportunity')]" />
|
|
|
|
<field name="type_id" string="Campaign" select="1"/>
|
|
|
|
<field name="referred"/>
|
|
|
|
</group>
|
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Dates" colspan="2" col="2"/>
|
|
|
|
<field name="create_date"/>
|
|
|
|
<field name="write_date"/>
|
|
|
|
<field name="date_closed"/>
|
2010-04-07 11:08:20 +00:00
|
|
|
<field name="date_open"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
</group>
|
2010-03-10 06:25:59 +00:00
|
|
|
<group colspan="2" col="2">
|
|
|
|
<separator string="Statistics" colspan="2" col="2"/>
|
|
|
|
<field name="day_open"/>
|
|
|
|
<field name="day_close"/>
|
|
|
|
</group>
|
2010-02-28 13:21:56 +00:00
|
|
|
</page>
|
2010-04-06 16:15:10 +00:00
|
|
|
<page string="Emails" groups="base.group_extended">
|
|
|
|
<group colspan="4">
|
|
|
|
<field colspan="4" name="email_cc" string="CC"/>
|
|
|
|
</group>
|
|
|
|
<field name="history_line" colspan="4" nolabel="1" mode="form,tree">
|
|
|
|
<form string="Communication history">
|
|
|
|
<group col="7" colspan="4">
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="email_to"/>
|
|
|
|
<field name="email_from"/>
|
|
|
|
<button
|
|
|
|
string="Add a CC"
|
|
|
|
name="%(crm.action_view_crm_email_add_cc_wizard)d"
|
|
|
|
icon="gtk-add" type="action"/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<field name="description" colspan="4" nolabel="1"/>
|
|
|
|
<button colspan="4"
|
2010-04-08 23:29:00 +00:00
|
|
|
string="Reply to Email"
|
2010-04-06 16:15:10 +00:00
|
|
|
name="%(action_crm_send_mail)d"
|
|
|
|
context="{'mail':'reply', 'model': 'crm.lead'}"
|
|
|
|
icon="gtk-undo" type="action" />
|
|
|
|
</form>
|
|
|
|
<tree string="Communication history">
|
|
|
|
<field name="description"/>
|
|
|
|
<field name="email_to"/>
|
|
|
|
<field name="date"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
<button colspan="4" string="Send New Email"
|
|
|
|
name="%(action_crm_send_mail)d"
|
|
|
|
context="{'mail':'new', 'model': 'crm.lead'}"
|
|
|
|
icon="gtk-go-forward" type="action" />
|
|
|
|
</page>
|
|
|
|
|
2010-02-19 17:15:16 +00:00
|
|
|
</notebook>
|
2009-12-04 14:15:17 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-02-19 17:15:16 +00:00
|
|
|
|
2010-03-22 10:40:26 +00:00
|
|
|
<!-- CRM Lead Tree View -->
|
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
<record model="ir.ui.view" id="crm_case_tree_view_leads">
|
2009-12-08 07:25:05 +00:00
|
|
|
<field name="name">CRM - Leads Tree</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="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-02-19 17:15:16 +00:00
|
|
|
<tree string="Leads Tree" colors="blue:state=='pending';grey:state in ('cancel', 'done')">
|
|
|
|
<field name="create_date"/>
|
|
|
|
<field name="partner_name"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<field name="name"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="email_from"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<field name="phone"/>
|
|
|
|
|
|
|
|
<field name="categ_id" invisible="1"/>
|
|
|
|
<field name="type_id" invisible="1"/>
|
|
|
|
<field name="referred" invisible="1"/>
|
|
|
|
|
|
|
|
<field name="stage_id"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="stage_previous" string="Previous"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="open,pending" type="object" icon="gtk-go-back" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="stage_next" string="Next"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="open,pending" type="object"
|
|
|
|
icon="gtk-go-forward" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<field name="section_id"
|
2010-04-06 16:15:10 +00:00
|
|
|
invisible="context.get('invisible_section', True)" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<field name="user_id" />
|
|
|
|
<field name="state" />
|
|
|
|
<button name="case_open" string="Open"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="draft,pending" type="object"
|
|
|
|
icon="gtk-go-forward" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_close" string="Close"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="open,draft,pending" type="object"
|
|
|
|
icon="gtk-close" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button string="Convert to Opportunity"
|
2010-04-18 15:32:44 +00:00
|
|
|
name="convert_opportunity"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="draft,open,pending" icon="gtk-index"
|
2010-04-18 15:32:44 +00:00
|
|
|
type="object" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_escalate" string="Escalate"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="open,draft,pending" type="object"
|
|
|
|
icon="gtk-go-up" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_cancel" string="Cancel"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="draft,open,pending" type="object"
|
|
|
|
icon="gtk-cancel" />
|
2009-12-04 14:15:17 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-22 10:40:26 +00:00
|
|
|
|
|
|
|
<!-- CRM Lead Calendar View -->
|
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
<record model="ir.ui.view" id="crm_case_calendar_view_leads">
|
2009-12-08 07:25:05 +00:00
|
|
|
<field name="name">CRM - Leads Calendar</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="type">calendar</field>
|
|
|
|
<field name="priority" eval="2"/>
|
|
|
|
<field name="arch" type="xml">
|
2010-03-22 10:40:26 +00:00
|
|
|
<calendar string="Meeting For Leads Generation"
|
2010-04-06 16:15:10 +00:00
|
|
|
date_start="create_date" color="user_id"
|
|
|
|
date_delay="duration">
|
|
|
|
<field name="name" />
|
|
|
|
<field name="partner_name" />
|
|
|
|
<field name="partner_contact" />
|
2009-12-04 14:15:17 +00:00
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-03-22 10:40:26 +00:00
|
|
|
<!-- CRM Lead Search View -->
|
2009-12-04 14:15:17 +00:00
|
|
|
|
|
|
|
<record id="view_crm_case_leads_filter" model="ir.ui.view">
|
2009-12-31 12:57:20 +00:00
|
|
|
<field name="name">CRM - Leads Search</field>
|
|
|
|
<field name="model">crm.lead</field>
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
2009-12-08 07:25:05 +00:00
|
|
|
<search string="Search Leads">
|
2010-04-15 12:45:21 +00:00
|
|
|
<filter icon="terp-project" name="current"
|
2010-02-28 13:21:56 +00:00
|
|
|
string="Current"
|
|
|
|
domain="[('state','in',('draft','open'))]"/>
|
|
|
|
<filter icon="terp-project"
|
|
|
|
string="Open"
|
|
|
|
domain="[('state','=','open')]"/>
|
|
|
|
<filter icon="terp-project"
|
|
|
|
string="Pending"
|
|
|
|
domain="[('state','=','pending')]"/>
|
|
|
|
|
|
|
|
<separator orientation="vertical"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
<filter icon="gtk-home" string="Today"
|
2010-04-06 16:15:10 +00:00
|
|
|
domain="[('create_date','<', time.strftime('%%Y-%%m-%%d 23:59:59')), \
|
|
|
|
('create_date','>=', time.strftime('%%Y-%%m-%%d 23:59:59'))]"
|
|
|
|
help="Todays' Opportunities" />
|
2010-02-19 17:15:16 +00:00
|
|
|
<filter icon="gtk-media-rewind" string="7 Days"
|
|
|
|
help="Opportunities during last 7 days"
|
2010-03-22 10:40:26 +00:00
|
|
|
domain="[('create_date','<', time.strftime('%%Y-%%m-%%d')),\
|
|
|
|
('create_date','>=',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
|
2010-02-19 17:15:16 +00:00
|
|
|
/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<field name="partner_name"/>
|
|
|
|
<field name="email_from"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="user_id" widget="selection">
|
|
|
|
<filter icon="terp-partner"
|
|
|
|
domain="[('user_id','=',uid)]"
|
2010-04-15 12:45:21 +00:00
|
|
|
help="My Leads" name="my_lead"
|
2010-02-08 13:16:07 +00:00
|
|
|
/>
|
2010-04-06 16:15:10 +00:00
|
|
|
<filter icon="terp-partner"
|
|
|
|
domain="[('user_id','=', False)]"
|
|
|
|
help="Unassigned Leads" />
|
2010-02-19 17:15:16 +00:00
|
|
|
</field>
|
2010-04-07 14:12:20 +00:00
|
|
|
<field name="section_id" widget="selection"
|
2010-02-28 13:21:56 +00:00
|
|
|
context="{'invisible_section': False}">
|
2010-02-19 17:15:16 +00:00
|
|
|
<filter icon="terp-crm"
|
2010-02-28 13:21:56 +00:00
|
|
|
context="{'invisible_section': False}"
|
|
|
|
domain="[('section_id.user_id','=',uid)]"
|
2010-02-19 17:15:16 +00:00
|
|
|
help="My section"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<filter icon="terp-crm"
|
|
|
|
context="{'invisible_section': False}"
|
|
|
|
domain="[]"
|
2010-04-06 16:15:10 +00:00
|
|
|
help="Show Sales Team"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
</field>
|
|
|
|
<newline/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<group expand="1" string="Group By..." colspan="14">
|
2010-02-19 17:15:16 +00:00
|
|
|
<filter string="Stage" icon="terp-crm" domain="[]" context="{'group_by':'stage_id'}"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<filter string="State" icon="terp-crm" domain="[]" context="{'group_by':'state'}"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<filter string="Source" icon="terp-crm" domain="[]" context="{'group_by':'categ_id'}"/>
|
|
|
|
<filter string="Type" icon="terp-crm" domain="[]" context="{'group_by':'type'}"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter string="Team" icon="terp-crm" domain="[]" context="{'group_by':'section_id'}"/>
|
2010-02-25 06:55:42 +00:00
|
|
|
<filter string="Salesman" icon="terp-crm" domain="[]" context="{'group_by':'user_id'}"/>
|
2010-02-28 13:21:56 +00:00
|
|
|
<filter string="Referrer" icon="terp-crm" domain="[]" context="{'group_by':'referred'}"/>
|
2010-02-08 13:16:07 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<filter string="Creation" icon="terp-project"
|
2010-04-06 16:15:10 +00:00
|
|
|
domain="[]" context="{'group_by':'create_date'}" />
|
2010-02-08 13:16:07 +00:00
|
|
|
</group>
|
2009-12-04 14:15:17 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|