2009-12-04 14:15:17 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
2010-01-12 06:43:23 +00:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Opportunity Categories
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
|
|
|
<record id="crm_opportunity_categ_action" model="ir.actions.act_window">
|
|
|
|
<field name="name">Opportunity Categories</field>
|
2010-01-18 10:03:52 +00:00
|
|
|
<field name="res_model">crm.case.categ</field>
|
2010-01-12 06:43:23 +00:00
|
|
|
<field name="view_type">form</field>
|
2010-01-18 14:09:26 +00:00
|
|
|
<field name="view_id" ref="crm.crm_case_categ_tree-view"/>
|
2010-01-18 14:42:02 +00:00
|
|
|
<field name="domain">[('object_id.model', '=', 'crm.opportunity')]</field>
|
|
|
|
<field name="context">{'object_id':'crm.opportunity'}</field>
|
2010-01-12 06:43:23 +00:00
|
|
|
</record>
|
2010-01-13 12:52:53 +00:00
|
|
|
<menuitem action="crm_opportunity_categ_action" id="menu_crm_case_opportunity-act" parent="crm.menu_crm_case_categ"/>
|
2010-01-13 09:37:24 +00:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Stage
|
|
|
|
# ------------------------------------------------------
|
|
|
|
<record id="crm_opportunity_stage_act" model="ir.actions.act_window">
|
|
|
|
<field name="name">Opportunity Stages</field>
|
2010-01-18 10:03:52 +00:00
|
|
|
<field name="res_model">crm.case.stage</field>
|
2010-01-13 09:37:24 +00:00
|
|
|
<field name="view_type">form</field>
|
2010-01-18 14:09:26 +00:00
|
|
|
<field name="view_id" ref="crm.crm_case_stage_tree"/>
|
2010-01-18 14:42:02 +00:00
|
|
|
<field name="domain">[('object_id.model', '=', 'crm.opportunity')]</field>
|
|
|
|
<field name="context">{'object_id':'crm.opportunity'}</field>
|
2010-01-13 09:37:24 +00:00
|
|
|
</record>
|
|
|
|
<menuitem action="crm_opportunity_stage_act" id="menu_crm_opportunity_stage_act" parent="crm.menu_crm_case_stage"/>
|
2009-12-23 11:43:11 +00:00
|
|
|
# ------------------------------------------------------
|
2009-12-04 14:15:17 +00:00
|
|
|
# Opportunities
|
2009-12-31 12:57:20 +00:00
|
|
|
# ------------------------------------------------------
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="crm_case_form_view_oppor">
|
|
|
|
<field name="name">CRM - Opportunities Form</field>
|
2009-12-31 12:57:20 +00:00
|
|
|
<field name="model">crm.opportunity</field>
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Opportunities">
|
|
|
|
<group colspan="4" col="7">
|
|
|
|
<field name="name" select="1" string="Opportunity" colspan="2"/>
|
|
|
|
<field name="section_id" colspan="1" widget="selection"/>
|
|
|
|
<field name="user_id" select="2" string="Responsible"/>
|
2010-01-13 04:10:26 +00:00
|
|
|
<button string="Schedule a Meeting"
|
2010-01-13 06:41:10 +00:00
|
|
|
name="%(wizard_crm_opportunity_meeting_set)d" icon="gtk-redo" type="action" />
|
2009-12-04 14:15:17 +00:00
|
|
|
<newline/>
|
|
|
|
<label string="Sales Stage: " align="1.0"/>
|
|
|
|
<group colspan="1" col="2">
|
|
|
|
<field name="stage_id" select="1" nolabel="1"/>
|
|
|
|
<button icon="gtk-go-forward" string="" name="stage_next" type="object"/>
|
|
|
|
</group>
|
2010-01-29 10:15:52 +00:00
|
|
|
<field name="date_deadline"/>
|
2010-01-29 10:07:59 +00:00
|
|
|
<field name="date" />
|
2010-01-29 10:33:06 +00:00
|
|
|
<group colspan="2" attrs="{'invisible' : [('phonecall_id','=',False)]}" >
|
2010-01-29 10:07:59 +00:00
|
|
|
<field name="phonecall_id" />
|
2009-12-23 11:43:11 +00:00
|
|
|
</group>
|
2010-01-13 04:10:26 +00:00
|
|
|
<button string="Schedule a Phone Call"
|
2010-01-19 08:51:32 +00:00
|
|
|
name="%(wizard_crm_opportunity_reschedule_phone_call)d" icon="gtk-redo" type="action" attrs="{'invisible':[('phonecall_id','!=',False)]}" />
|
2009-12-04 14:15:17 +00:00
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Description">
|
|
|
|
<field name="partner_id" select="1" on_change="onchange_partner_id(partner_id, email_from)" colspan="2"/>
|
|
|
|
<field name="partner_address_id" string="Contact" on_change="onchange_partner_address_id(partner_address_id, email_from)" colspan="1"/>
|
|
|
|
<field name="email_from" colspan="2"/>
|
|
|
|
<field name="categ_id" select="1" on_change="onchange_categ_id(categ_id)" string="Source"/>
|
|
|
|
<field name="priority" string="Priority"/>
|
2010-01-13 09:37:24 +00:00
|
|
|
<field name="type_id" select="1" string="Type"/>
|
2009-12-04 14:15:17 +00:00
|
|
|
<separator colspan="4" string="Estimates"/>
|
|
|
|
<field name="planned_revenue"/>
|
|
|
|
<field name="planned_cost"/>
|
|
|
|
<field name="probability"/>
|
|
|
|
<separator colspan="4" string="Description Information"/>
|
|
|
|
<field name="description" nolabel="1" colspan="4"/>
|
|
|
|
|
|
|
|
<separator colspan="4"/>
|
|
|
|
<group col="8" colspan="4">
|
2009-12-23 11:43:11 +00:00
|
|
|
<field name="state" select="2"/>
|
2009-12-04 14:15:17 +00:00
|
|
|
<button name="case_close" string="Done" states="open,draft,pending" type="object" icon="gtk-close"/>
|
|
|
|
<button name="case_open" string="Open" states="draft,pending" type="object" icon="gtk-go-forward"/>
|
|
|
|
<button name="case_cancel" string="Cancel" states="draft,open,pending" type="object" icon="gtk-cancel"/>
|
|
|
|
<button name="case_pending" string="Pending" states="draft,open" type="object" icon="gtk-media-pause"/>
|
|
|
|
<button name="case_escalate" string="Escalate" states="open,draft,pending" type="object" icon="gtk-go-up"/>
|
|
|
|
<button name="case_reset" string="Reset to Draft" states="done,cancel" type="object" icon="gtk-convert"/>
|
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
|
|
|
|
<page string="History">
|
|
|
|
<field name="active"/>
|
|
|
|
<field name="canal_id"/>
|
|
|
|
<field name="som"/>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
<separator colspan="4" string="Dates"/>
|
|
|
|
<field name="create_date"/>
|
|
|
|
<field name="date_closed"/>
|
|
|
|
<field name="date_action_last"/>
|
|
|
|
<field name="date_action_next"/>
|
|
|
|
<separator colspan="4" string="References"/>
|
|
|
|
<field name="ref" colspan="4"/>
|
|
|
|
<field name="ref2" colspan="4"/>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="log_ids" nolabel="1" colspan="4">
|
|
|
|
<form string="Actions">
|
|
|
|
<separator string="Action Information" colspan="4"/>
|
|
|
|
<field name="name" colspan="4"/>
|
|
|
|
<field name="date"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="som"/>
|
|
|
|
<field name="canal_id"/>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
|
|
<page string="Emails">
|
|
|
|
<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"/>
|
|
|
|
<field name="canal_id"/>
|
|
|
|
<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"/>
|
2009-12-23 11:43:11 +00:00
|
|
|
<button colspan="4" string="Reply to Last Email" name="%(crm.wizard_crm_send_mail)d" context="{'mail':'reply'}" icon="gtk-undo" type="action"/>
|
2009-12-04 14:15:17 +00:00
|
|
|
</form>
|
|
|
|
<tree string="Communication history">
|
|
|
|
<field name="description"/>
|
|
|
|
<field name="email"/>
|
|
|
|
<field name="date"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
<button colspan="4" string="Send New Email" name="%(crm.wizard_crm_new_send_mail)d" context="{'mail':'new'}" icon="gtk-go-forward" type="action"/>
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="crm_case_tree_view_oppor">
|
|
|
|
<field name="name">CRM - Opportunities Tree</field>
|
2009-12-31 12:57:20 +00:00
|
|
|
<field name="model">crm.opportunity</field>
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2009-12-23 11:43:11 +00:00
|
|
|
<tree string="Opportunities Tree" colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="id"/>
|
|
|
|
<field name="name" string="Opportunities"/>
|
|
|
|
<field name="stage_id" string="Sales Stage"/>
|
|
|
|
<field name="partner_id" string="Partner"/>
|
|
|
|
<field name="planned_revenue"/>
|
|
|
|
<field name="probability"/>
|
2010-01-29 10:18:39 +00:00
|
|
|
<field name="date_deadline"/>
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="state"/>
|
|
|
|
<button name="case_open" string="Open" states="draft,pending" type="object" icon="gtk-go-forward"/>
|
|
|
|
<button name="case_close" string="Done" states="open,draft,pending" type="object" icon="gtk-close"/>
|
|
|
|
<button name="case_escalate" string="Escalate" states="open,draft,pending" type="object" icon="gtk-go-up"/>
|
|
|
|
<button name="case_cancel" string="Cancel" states="draft,open,pending" type="object" icon="gtk-cancel"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-08 07:20:51 +00:00
|
|
|
<record model="ir.ui.view" id="crm_case_graph_view_opportunity">
|
|
|
|
<field name="name">CRM - Opportunity Graph</field>
|
|
|
|
<field name="model">crm.opportunity</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="Opportunity by Categories" type="bar" orientation="horizontal">
|
|
|
|
<field name="categ_id"/>
|
|
|
|
<field name="planned_cost" operator="+"/>
|
|
|
|
<field name="state" group="True"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
<record id="view_crm_case_opportunities_filter" model="ir.ui.view">
|
2009-12-31 12:57:20 +00:00
|
|
|
<field name="name">CRM - Opportunities Search</field>
|
|
|
|
<field name="model">crm.opportunity</field>
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Opportunities">
|
|
|
|
<group col="3" colspan="1">
|
|
|
|
<filter icon="gtk-home" string=" Today "
|
|
|
|
separator="1"
|
2009-12-31 12:57:20 +00:00
|
|
|
domain="[('date','=',time.strftime('%%Y-%%m-%%d'))]"
|
2009-12-04 14:15:17 +00:00
|
|
|
help="Todays's Opportunities"
|
|
|
|
/>
|
|
|
|
<filter icon="gtk-media-rewind" string=" 7 Days "
|
|
|
|
separator="1" help="Opportunities during last 7 days"
|
2009-12-31 12:57:20 +00:00
|
|
|
domain="[('date','<', time.strftime('%%Y-%%m-%%d')), ('date','>=',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
|
2009-12-04 14:15:17 +00:00
|
|
|
/>
|
|
|
|
</group>
|
|
|
|
<separator orientation="vertical"/>
|
2010-01-05 11:26:59 +00:00
|
|
|
<group col="6" colspan="2">
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="name" select="1" string="Opportunity"/>
|
|
|
|
<field name="user_id" select="1" widget="selection">
|
|
|
|
<filter icon="terp-partner"
|
|
|
|
domain="[('user_id','=',uid)]"
|
|
|
|
help="My Opportunities" default="1"
|
|
|
|
/>
|
|
|
|
</field>
|
|
|
|
<field name="partner_id" select="1"/>
|
|
|
|
<field name="state" select="1">
|
2010-01-08 07:20:51 +00:00
|
|
|
<filter icon="gtk-index" domain="[('state','in',('open','draft'))]" help="Current "/>
|
2009-12-04 14:15:17 +00:00
|
|
|
</field>
|
2010-01-11 05:27:49 +00:00
|
|
|
<field name="section_id" select="1" widget="selection" string="Section">
|
|
|
|
<filter icon="terp-crm"
|
|
|
|
domain="[('section_id','=',context.get('section_id',False))]"
|
|
|
|
help="My section"/>
|
|
|
|
</field>
|
2009-12-04 14:15:17 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
</data>
|
|
|
|
</openerp>
|