2009-12-04 14:15:17 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2010-02-02 06:39:40 +00:00
|
|
|
|
2010-03-22 10:40:26 +00:00
|
|
|
<!-- Phonecall Categories Form View -->
|
2010-02-02 06:39:40 +00:00
|
|
|
|
2010-01-12 06:43:23 +00:00
|
|
|
<record id="crm_phonecall_categ_action" model="ir.actions.act_window">
|
|
|
|
<field name="name">Phonecall 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-02-19 17:15:16 +00:00
|
|
|
<field name="domain">[('object_id.model', '=', 'crm.phonecall')]</field>
|
|
|
|
<field name="context">{'object_id':'crm.phonecall'}</field>
|
2010-01-12 06:43:23 +00:00
|
|
|
</record>
|
2010-02-02 06:39:40 +00:00
|
|
|
|
2010-06-03 08:51:24 +00:00
|
|
|
<menuitem action="crm_phonecall_categ_action" name="Categories"
|
|
|
|
id="menu_crm_case_phonecall-act" parent="menu_crm_config_phonecall" />
|
2010-02-02 06:39:40 +00:00
|
|
|
|
2010-03-22 10:40:26 +00:00
|
|
|
<!-- ResourceType Form View -->
|
|
|
|
|
|
|
|
<record id="crm_phonecall_resource_act" model="ir.actions.act_window">
|
2010-03-05 15:42:53 +00:00
|
|
|
<field name="name">Phonecall 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.phonecall')]</field>
|
|
|
|
<field name="context">{'object_id':'crm.phonecall'}</field>
|
2010-03-05 12:43:16 +00:00
|
|
|
</record>
|
|
|
|
|
2010-06-03 08:51:24 +00:00
|
|
|
<menuitem action="crm_phonecall_resource_act"
|
|
|
|
id="menu_crm_phonecall_resource_act" name="Resource Type"
|
|
|
|
parent="menu_crm_config_phonecall" />
|
2009-12-04 14:15:17 +00:00
|
|
|
|
2010-03-22 10:40:26 +00:00
|
|
|
<!-- PhoneCalls Tree View -->
|
2009-12-31 12:57:20 +00:00
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
<record model="ir.ui.view" id="crm_case_phone_tree_view">
|
2009-12-07 07:12:23 +00:00
|
|
|
<field name="name">CRM - Phone Calls Tree</field>
|
2009-12-31 12:57:20 +00:00
|
|
|
<field name="model">crm.phonecall</field>
|
2009-12-07 07:12:23 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-02-19 17:15:16 +00:00
|
|
|
<tree string="Phone Calls" colors="grey:state in ('cancel','done');blue:state in ('pending',)">
|
2009-12-07 07:12:23 +00:00
|
|
|
<field name="date" string="Date"/>
|
2009-12-23 11:43:11 +00:00
|
|
|
<field name="name" string="Call Summary"/>
|
2009-12-07 07:12:23 +00:00
|
|
|
<field name="partner_id" string="Partner"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="partner_contact"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<field name="partner_phone"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="user_id"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<button string="Opportunity"
|
2010-03-09 08:35:43 +00:00
|
|
|
name="%(phonecall2opportunity_act)d"
|
2010-02-19 17:15:16 +00:00
|
|
|
states="draft,open,pending"
|
|
|
|
type="action" attrs="{'invisible':[('opportunity_id','!=',False)]}" />
|
2009-12-07 07:12:23 +00:00
|
|
|
<button string="Meeting"
|
2010-02-19 17:15:16 +00:00
|
|
|
states="draft,open,pending"
|
2010-05-04 05:50:54 +00:00
|
|
|
name="action_make_meeting" type="object" />
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="state"/>
|
|
|
|
<button name="case_open" string="Open" states="draft,pending" type="object" icon="gtk-go-forward"/>
|
|
|
|
<button name="case_close" string="Held" states="open,draft,pending" type="object" icon="gtk-jump-to"/>
|
|
|
|
<button name="case_pending" string="Not Held" states="open" type="object" icon="gtk-media-pause"/>
|
|
|
|
<button name="case_cancel" string="Cancel" 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
|
|
|
<!-- Phonecalls Form View -->
|
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
<record model="ir.ui.view" id="crm_case_phone_form_view">
|
|
|
|
<field name="name">CRM - Phone Call Form</field>
|
2009-12-31 12:57:20 +00:00
|
|
|
<field name="model">crm.phonecall</field>
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-02-16 17:21:39 +00:00
|
|
|
<form string="Phone Call">
|
2010-02-19 17:15:16 +00:00
|
|
|
<group colspan="4" col="7">
|
2010-05-05 13:02:55 +00:00
|
|
|
<field name="name" string="Summary"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="date" string="Planned Date"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<button string="Schedule a Meeting"
|
2010-04-01 11:31:30 +00:00
|
|
|
name="action_make_meeting"
|
2010-02-19 17:15:16 +00:00
|
|
|
icon="gtk-redo"
|
2010-04-01 11:31:30 +00:00
|
|
|
type="object" />
|
|
|
|
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="partner_phone"/>
|
|
|
|
<field name="duration"/>
|
2010-02-16 17:21:39 +00:00
|
|
|
<field name="section_id" colspan="1" widget="selection" />
|
2010-02-19 17:15:16 +00:00
|
|
|
<button string="Convert to Opportunity"
|
2010-03-09 08:35:43 +00:00
|
|
|
name="%(phonecall2opportunity_act)d"
|
2010-02-19 17:15:16 +00:00
|
|
|
icon="gtk-index" type="action"
|
|
|
|
attrs="{'invisible':[('opportunity_id','!=',False)]}" />
|
2010-04-06 16:15:10 +00:00
|
|
|
<label colspan="6" string=""/>
|
|
|
|
<button string="Schedule Other Call"
|
|
|
|
icon="gtk-redo"
|
2010-03-08 08:02:48 +00:00
|
|
|
name="%(phonecall_to_phonecall_act)d"
|
|
|
|
type="action" />
|
2010-03-22 10:40:26 +00:00
|
|
|
|
2010-02-19 17:15:16 +00:00
|
|
|
</group>
|
|
|
|
<group col="3" colspan="2">
|
2010-02-19 17:34:07 +00:00
|
|
|
<separator colspan="3" string="Contacts" />
|
2010-03-25 13:05:11 +00:00
|
|
|
<field name="partner_id"
|
2010-04-06 16:15:10 +00:00
|
|
|
on_change="onchange_partner_id(partner_id, email_from)" />
|
2010-03-03 09:52:56 +00:00
|
|
|
<button string="Create a Partner"
|
2010-02-19 17:15:16 +00:00
|
|
|
icon="terp-crm"
|
2010-03-09 11:30:37 +00:00
|
|
|
name="%(action_crm_phonecall2partner)d"
|
2010-02-19 17:15:16 +00:00
|
|
|
type="action"
|
|
|
|
attrs="{'invisible':[('partner_id','!=',False)]}" />
|
2010-02-19 17:34:07 +00:00
|
|
|
<newline/>
|
2010-03-25 13:05:11 +00:00
|
|
|
<field name="partner_address_id" string="Contact"
|
2010-04-06 16:15:10 +00:00
|
|
|
on_change="onchange_partner_address_id(partner_address_id, email_from)" />
|
2010-02-19 17:34:07 +00:00
|
|
|
<newline/>
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="partner_mobile" />
|
|
|
|
</group>
|
|
|
|
<group col="2" colspan="2">
|
2010-02-19 17:34:07 +00:00
|
|
|
<separator colspan="2" string="Categorization" />
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="priority"/>
|
2010-03-04 10:36:46 +00:00
|
|
|
<field name="opportunity_id"/>
|
2010-02-16 17:21:39 +00:00
|
|
|
</group>
|
|
|
|
<separator string="Description" colspan="4" />
|
|
|
|
<field name="description" nolabel="1" colspan="4" />
|
|
|
|
<separator colspan="4" />
|
|
|
|
<group col="8" colspan="4">
|
|
|
|
<field name="state" select="1" />
|
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_pending" string="Not Held"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="open" type="object" icon="gtk-undo" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_close" string="Held"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="open,draft,pending" type="object"
|
|
|
|
icon="gtk-jump-to" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<button name="case_reset" string="Reset to Draft"
|
2010-04-06 16:15:10 +00:00
|
|
|
states="done,cancel" type="object"
|
|
|
|
icon="gtk-convert" />
|
2010-06-24 12:49:53 +00:00
|
|
|
<button name="case_cancel" string="Cancel"
|
|
|
|
states="draft,open,pending" type="object"
|
|
|
|
icon="gtk-cancel" />
|
2010-02-16 17:21:39 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
2009-12-04 14:15:17 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-07 12:35:16 +00:00
|
|
|
|
2010-05-03 07:30:34 +00:00
|
|
|
<!--Inbound Phonecalls Form View -->
|
2009-12-04 14:15:17 +00:00
|
|
|
|
2010-05-04 05:50:54 +00:00
|
|
|
<record model="ir.ui.view" id="crm_case_inbound_phone_form_view">
|
2010-05-03 07:30:34 +00:00
|
|
|
<field name="name">CRM - Inbound Phone Call Form</field>
|
|
|
|
<field name="model">crm.phonecall</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Phone Call">
|
|
|
|
<group colspan="4" col="7">
|
2010-06-24 12:49:53 +00:00
|
|
|
<field name="name" string="Summary" required="1"/>
|
|
|
|
<field name="date" string="Planned Date" required="1"/>
|
2010-05-03 07:30:34 +00:00
|
|
|
<field name="user_id"/>
|
|
|
|
<button string="Schedule a Meeting"
|
|
|
|
name="action_make_meeting"
|
|
|
|
icon="gtk-redo"
|
|
|
|
type="object" />
|
|
|
|
|
|
|
|
<field name="partner_phone"/>
|
|
|
|
<field name="duration"/>
|
|
|
|
<field name="section_id" colspan="1" widget="selection" />
|
|
|
|
<button string="Convert to Opportunity"
|
|
|
|
name="%(phonecall2opportunity_act)d"
|
|
|
|
icon="gtk-index" type="action"
|
|
|
|
attrs="{'invisible':[('opportunity_id','!=',False)]}" />
|
|
|
|
<label colspan="6" string=""/>
|
|
|
|
<button string="Schedule Other Call"
|
|
|
|
icon="gtk-redo"
|
|
|
|
name="%(phonecall_to_phonecall_act)d"
|
|
|
|
type="action" />
|
|
|
|
|
|
|
|
</group>
|
|
|
|
<group col="3" colspan="2">
|
|
|
|
<separator colspan="3" string="Contacts" />
|
|
|
|
<field name="partner_id"
|
|
|
|
on_change="onchange_partner_id(partner_id, email_from)" />
|
|
|
|
<button string="Create a Partner"
|
|
|
|
icon="terp-crm"
|
|
|
|
name="%(action_crm_phonecall2partner)d"
|
|
|
|
type="action"
|
|
|
|
attrs="{'invisible':[('partner_id','!=',False)]}" />
|
|
|
|
<newline/>
|
|
|
|
<field name="partner_address_id" string="Contact"
|
|
|
|
on_change="onchange_partner_address_id(partner_address_id, email_from)" />
|
|
|
|
<newline/>
|
|
|
|
<field name="partner_mobile" />
|
|
|
|
</group>
|
|
|
|
<group col="2" colspan="2">
|
|
|
|
<separator colspan="2" string="Categorization" />
|
|
|
|
<field name="priority"/>
|
|
|
|
<field name="opportunity_id"/>
|
|
|
|
</group>
|
|
|
|
<separator string="Description" colspan="4" />
|
|
|
|
<field name="description" nolabel="1" colspan="4" />
|
|
|
|
<separator colspan="4" />
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-07 12:35:16 +00:00
|
|
|
|
2010-05-04 05:50:54 +00:00
|
|
|
<!--Inbound Phonecalls Tree View -->
|
2010-06-07 12:35:16 +00:00
|
|
|
|
2010-05-04 05:50:54 +00:00
|
|
|
<record model="ir.ui.view" id="crm_case_inbound_phone_tree_view">
|
|
|
|
<field name="name">CRM - Inbound Phone Calls Tree</field>
|
|
|
|
<field name="model">crm.phonecall</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Phone Calls" colors="grey:state in ('cancel','done');blue:state in ('pending',)">
|
|
|
|
<field name="date" string="Date"/>
|
|
|
|
<field name="name" string="Call Summary"/>
|
2010-06-28 07:32:32 +00:00
|
|
|
<field name="partner_id"
|
|
|
|
on_change="onchange_partner_id(partner_id, email_from)"
|
|
|
|
string="Partner" />
|
|
|
|
<field name="partner_address_id" string="Contact"
|
|
|
|
on_change="onchange_partner_address_id(partner_address_id, email_from)" />
|
2010-05-04 05:50:54 +00:00
|
|
|
<field name="partner_phone"/>
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="state" invisible="1"/>
|
2010-06-24 12:49:53 +00:00
|
|
|
<field name="create_date" invisible="1"/>
|
2010-05-04 05:50:54 +00:00
|
|
|
<button string="Opportunity"
|
|
|
|
name="%(phonecall2opportunity_act)d"
|
|
|
|
states="draft,open,pending"
|
|
|
|
icon="gtk-convert"
|
|
|
|
type="action" attrs="{'invisible':[('opportunity_id','!=',False)]}" />
|
|
|
|
<button string="Meeting"
|
|
|
|
states="draft,open,pending" icon="gtk-redo"
|
|
|
|
name="action_make_meeting" type="object" />
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-03-22 10:40:26 +00:00
|
|
|
<!-- Phonecalls Calendar View -->
|
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
<record model="ir.ui.view" id="crm_case_phone_calendar_view">
|
|
|
|
<field name="name">CRM - Phone Calls Calendar</field>
|
2009-12-31 12:57:20 +00:00
|
|
|
<field name="model">crm.phonecall</field>
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="type">calendar</field>
|
|
|
|
<field name="priority" eval="2"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<calendar string="Phone Calls" date_start="date" color="user_id" date_delay="duration">
|
|
|
|
<field name="name"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<field name="partner_id"/>
|
2009-12-04 14:15:17 +00:00
|
|
|
</calendar>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-12-23 11:43:11 +00:00
|
|
|
|
2010-03-22 10:40:26 +00:00
|
|
|
<!-- Phonecalls Search View -->
|
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
<record id="view_crm_case_phonecalls_filter" model="ir.ui.view">
|
2009-12-31 12:57:20 +00:00
|
|
|
<field name="name">CRM - Phone Calls Search</field>
|
|
|
|
<field name="model">crm.phonecall</field>
|
2009-12-04 14:15:17 +00:00
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Phonecalls">
|
2010-06-26 15:15:23 +00:00
|
|
|
<filter icon="terp-go-today" string="Current"
|
|
|
|
name="current"
|
|
|
|
domain="[('state','in', ('draft','open','pending'))]"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter icon="terp-go-today" string="Today"
|
2010-03-22 10:40:26 +00:00
|
|
|
domain="[('date','<', time.strftime('%%Y-%%m-%%d 23:59:59')),\
|
|
|
|
('date','>=',datetime.strftime('%%Y-%%m-%%d 00:00:00'))]"
|
2010-06-26 15:15:23 +00:00
|
|
|
name="today"
|
2010-02-19 17:15:16 +00:00
|
|
|
help="Todays's Phonecalls"
|
|
|
|
/>
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter icon="terp-go-week"
|
2010-02-19 17:15:16 +00:00
|
|
|
string="7 Days"
|
|
|
|
help="Phonecalls during last 7 days"
|
2010-06-26 15:15:23 +00:00
|
|
|
domain="[('date','>=',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
|
2010-02-19 17:15:16 +00:00
|
|
|
/>
|
2010-06-26 15:15:23 +00:00
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="name" string="Call Summary"/>
|
|
|
|
<field name="partner_id"/>
|
2010-06-12 17:49:33 +00:00
|
|
|
<field name="user_id">
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter icon="terp-personal-"
|
2010-04-06 16:15:10 +00:00
|
|
|
domain="[('user_id','=',False)]"
|
|
|
|
help="Unassigned Phonecalls" />
|
2010-02-19 17:15:16 +00:00
|
|
|
</field>
|
2010-03-22 10:40:26 +00:00
|
|
|
<field name="section_id"
|
2010-04-18 15:32:44 +00:00
|
|
|
select="1" widget="selection" string="Sales Team">
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter icon="terp-personal+"
|
2010-04-06 16:15:10 +00:00
|
|
|
domain="[('section_id','=',context.get('section_id',False))]"
|
2010-05-19 12:39:03 +00:00
|
|
|
help="My Sale Team" />
|
2010-02-19 17:15:16 +00:00
|
|
|
</field>
|
|
|
|
<newline/>
|
2010-05-10 07:07:03 +00:00
|
|
|
<group expand="0" string="Group By..." colspan="4">
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter string="Partner" icon="terp-personal" domain="[]"
|
2010-04-06 16:15:10 +00:00
|
|
|
context="{'group_by':'partner_id'}" />
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter string="Responsible" icon="terp-personal"
|
2010-04-06 16:15:10 +00:00
|
|
|
domain="[]" context="{'group_by':'user_id'}" />
|
2010-03-22 10:40:26 +00:00
|
|
|
<separator orientation="vertical" />
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter string="Creation" icon="terp-go-month"
|
2010-04-06 16:15:10 +00:00
|
|
|
domain="[]" context="{'group_by':'create_date'}" />
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter string="Date" icon="terp-go-month" domain="[]"
|
2010-04-06 16:15:10 +00:00
|
|
|
context="{'group_by':'date'}" />
|
2010-02-19 17:15:16 +00:00
|
|
|
</group>
|
2009-12-04 14:15:17 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-07 12:35:16 +00:00
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|