2009-12-04 14:15:17 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2010-02-02 06:39:40 +00:00
|
|
|
|
2012-06-26 12:00:13 +00:00
|
|
|
<!-- Read/Unread actions -->
|
|
|
|
<record id="actions_server_crm_phonecall_unread" model="ir.actions.server">
|
|
|
|
<field name="name">Mark unread</field>
|
|
|
|
<field name="condition">True</field>
|
|
|
|
<field name="type">ir.actions.server</field>
|
|
|
|
<field name="model_id" ref="model_crm_phonecall"/>
|
|
|
|
<field name="state">code</field>
|
|
|
|
<field name="code">self.message_check_and_set_unread(cr, uid, context.get('active_ids'), context=context)</field>
|
|
|
|
</record>
|
|
|
|
<record id="action_crm_phonecall_unread" model="ir.values">
|
|
|
|
<field name="name">action_crm_phonecall_unread</field>
|
|
|
|
<field name="action_id" ref="actions_server_crm_phonecall_unread"/>
|
|
|
|
<field name="value" eval="'ir.actions.server,' + str(ref('actions_server_crm_phonecall_unread'))" />
|
|
|
|
<field name="key">action</field>
|
|
|
|
<field name="model_id" ref="model_crm_phonecall" />
|
|
|
|
<field name="model">crm.phonecall</field>
|
|
|
|
<field name="key2">client_action_multi</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="actions_server_crm_phonecall_read" model="ir.actions.server">
|
|
|
|
<field name="name">Mark read</field>
|
|
|
|
<field name="condition">True</field>
|
|
|
|
<field name="type">ir.actions.server</field>
|
|
|
|
<field name="model_id" ref="model_crm_phonecall"/>
|
|
|
|
<field name="state">code</field>
|
|
|
|
<field name="code">self.message_check_and_set_read(cr, uid, context.get('active_ids'), context=context)</field>
|
|
|
|
</record>
|
|
|
|
<record id="action_crm_phonecall_read" model="ir.values">
|
|
|
|
<field name="name">action_crm_phonecall_read</field>
|
|
|
|
<field name="action_id" ref="actions_server_crm_phonecall_read"/>
|
|
|
|
<field name="value" eval="'ir.actions.server,' + str(ref('actions_server_crm_phonecall_read'))" />
|
|
|
|
<field name="key">action</field>
|
|
|
|
<field name="model_id" ref="model_crm_phonecall" />
|
|
|
|
<field name="model">crm.phonecall</field>
|
|
|
|
<field name="key2">client_action_multi</field>
|
|
|
|
</record>
|
2010-02-02 06:39:40 +00:00
|
|
|
|
2012-06-26 12:00:13 +00:00
|
|
|
<!-- Phonecall Categories Form View -->
|
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>
|
2011-11-24 14:20:01 +00:00
|
|
|
<field name="context" eval="{'object_id': ref('model_crm_phonecall')}"/>
|
2010-12-14 06:22:11 +00:00
|
|
|
<field name="help">Create specific phone call categories to better define the type of calls tracked in the system.</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"
|
2012-03-19 10:09:54 +00:00
|
|
|
id="menu_crm_case_phonecall-act" parent="menu_crm_config_phonecall" groups="base.group_no_one"/>
|
2010-02-02 06:39:40 +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">
|
2012-04-19 09:59:54 +00:00
|
|
|
<tree fonts="bold:needaction_pending==True" colors="gray:state in ('cancel','done');blue:state in ('pending',)" string="Phone Calls">
|
|
|
|
<field name="needaction_pending" invisible="1"/>
|
2010-09-21 16:39:51 +00:00
|
|
|
<field name="date"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="partner_id"/>
|
2010-03-22 10:40:26 +00:00
|
|
|
<field name="partner_phone"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
<field name="user_id"/>
|
2011-12-19 18:42:22 +00:00
|
|
|
<field name="categ_id" invisible="1"/>
|
2010-10-05 05:55:23 +00:00
|
|
|
<field name="create_date" invisible="1"/>
|
2011-08-10 14:57:07 +00:00
|
|
|
<field name="opportunity_id" invisible="1"/>
|
2012-07-02 16:29:01 +00:00
|
|
|
<field name="needaction_pending" invisible="1"/>
|
2010-11-25 06:02:31 +00:00
|
|
|
<button string="Convert to Opportunity"
|
2010-03-09 08:35:43 +00:00
|
|
|
name="%(phonecall2opportunity_act)d"
|
2011-05-16 06:17:45 +00:00
|
|
|
states="open,pending"
|
2010-09-20 11:33:27 +00:00
|
|
|
icon="gtk-index"
|
2010-02-19 17:15:16 +00:00
|
|
|
type="action" attrs="{'invisible':[('opportunity_id','!=',False)]}" />
|
2009-12-07 07:12:23 +00:00
|
|
|
<button string="Meeting"
|
2011-05-16 06:17:45 +00:00
|
|
|
states="open,pending" icon="gtk-redo"
|
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"/>
|
2012-05-23 15:06:25 +00:00
|
|
|
<button name="case_open" string="Confirm" type="object"
|
|
|
|
states="draft,pending" icon="gtk-go-forward"/>
|
|
|
|
<button name="case_close" string="Held" type="object"
|
|
|
|
states="open,pending" icon="gtk-jump-to"/>
|
|
|
|
<button name="case_cancel" string="Cancel" type="object"
|
|
|
|
states="draft,open,pending" icon="gtk-cancel"/>
|
2012-05-30 11:13:43 +00:00
|
|
|
<button name="case_reset" string="Reset to Todo" type="object"
|
|
|
|
states="cancel" icon="gtk-convert"/>
|
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">
|
2012-06-09 14:13:14 +00:00
|
|
|
<form version="7.0">
|
2012-06-04 12:11:39 +00:00
|
|
|
<header>
|
2012-06-20 10:12:05 +00:00
|
|
|
<button name="case_open" string="Confirm" type="object" class="oe_highlight"
|
2012-06-13 09:06:57 +00:00
|
|
|
states="draft,pending"/>
|
2012-06-20 10:12:05 +00:00
|
|
|
<button name="case_close" string="Held" type="object" class="oe_highlight"
|
2012-06-13 09:06:57 +00:00
|
|
|
states="open,pending"/>
|
2012-05-23 15:06:25 +00:00
|
|
|
<button name="case_reset" string="Reset to Todo" type="object"
|
2012-06-13 09:06:57 +00:00
|
|
|
states="cancel"/>
|
2012-05-23 15:06:25 +00:00
|
|
|
<button name="case_cancel" string="Cancel" type="object"
|
2012-06-13 09:06:57 +00:00
|
|
|
states="draft,open,pending"/>
|
2012-06-20 10:12:05 +00:00
|
|
|
<button string="Convert to Opportunity" class="oe_highlight"
|
2012-06-19 06:18:56 +00:00
|
|
|
name="%(phonecall2opportunity_act)d"
|
|
|
|
type="action"
|
|
|
|
attrs="{'invisible':[('opportunity_id','!=',False)]}" />
|
2012-06-09 14:13:14 +00:00
|
|
|
<button string="Schedule Other Call"
|
2012-06-19 06:18:56 +00:00
|
|
|
name="%(phonecall_to_phonecall_act)d"
|
|
|
|
type="action" />
|
2012-06-13 09:06:57 +00:00
|
|
|
<button string="Schedule a Meeting" name="action_make_meeting" type="object"/>
|
2012-06-04 10:50:56 +00:00
|
|
|
<field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,open,done"/>
|
2012-06-04 12:11:39 +00:00
|
|
|
</header>
|
2012-06-09 14:13:14 +00:00
|
|
|
<sheet string="Phone Call">
|
2012-06-19 08:56:18 +00:00
|
|
|
<div class="oe_title">
|
|
|
|
<div class="oe_edit_only">
|
2012-06-13 09:06:57 +00:00
|
|
|
<label for="name" string="Title"/>
|
|
|
|
</div>
|
|
|
|
<h1><field name="name" required="1"/></h1>
|
2012-06-19 08:56:18 +00:00
|
|
|
<div class="oe_edit_only">
|
2012-06-13 09:06:57 +00:00
|
|
|
<label for="partner_phone" string="Phone" />
|
|
|
|
</div>
|
|
|
|
<h2><field name="partner_phone"/></h2>
|
|
|
|
</div>
|
2012-06-09 14:13:14 +00:00
|
|
|
<group col="4">
|
2012-06-13 09:06:57 +00:00
|
|
|
<field name="date" />
|
|
|
|
<field name="user_id" />
|
|
|
|
<field name="duration" widget="float_time" />
|
2010-02-16 17:21:39 +00:00
|
|
|
<field name="section_id" colspan="1" widget="selection" />
|
2012-06-13 09:06:57 +00:00
|
|
|
<field name="partner_id" on_change="onchange_partner_id(partner_id)" />
|
|
|
|
<field name="categ_id" widget="selection"
|
|
|
|
domain="[('object_id.model', '=', 'crm.phonecall')]"/>
|
|
|
|
<field name="partner_mobile" />
|
|
|
|
<field name="priority"/>
|
|
|
|
<field name="opportunity_id"/>
|
2010-02-19 17:15:16 +00:00
|
|
|
</group>
|
2010-07-09 08:49:47 +00:00
|
|
|
|
2012-06-13 09:06:57 +00:00
|
|
|
<field name="description" placeholder="Description..." />
|
2012-05-16 05:13:29 +00:00
|
|
|
</sheet>
|
2012-06-09 14:13:14 +00:00
|
|
|
<footer>
|
2012-07-03 12:41:11 +00:00
|
|
|
<field name="message_ids" widget="mail_thread"/>
|
2012-06-09 14:13:14 +00:00
|
|
|
</footer>
|
2010-02-16 17:21:39 +00:00
|
|
|
</form>
|
2009-12-04 14:15:17 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-07 12:35:16 +00:00
|
|
|
|
2011-04-15 06:58:22 +00:00
|
|
|
<!--Logged 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">
|
2011-04-15 06:58:22 +00:00
|
|
|
<field name="name">CRM - Logged Phone Calls Tree</field>
|
2010-05-04 05:50:54 +00:00
|
|
|
<field name="model">crm.phonecall</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-04-19 09:59:54 +00:00
|
|
|
<tree string="Phone Calls" fonts="bold:needaction_pending==True" editable="top">
|
2010-09-21 16:39:51 +00:00
|
|
|
<field name="date"/>
|
|
|
|
<field name="name"/>
|
2010-06-28 07:32:32 +00:00
|
|
|
<field name="partner_id"
|
2011-01-17 22:02:45 +00:00
|
|
|
on_change="onchange_partner_id(partner_id)"
|
|
|
|
string="Partner" />
|
2011-12-19 18:42:22 +00:00
|
|
|
<field name="partner_phone"
|
|
|
|
invisible="1"/>
|
2012-04-25 11:51:39 +00:00
|
|
|
<field name="user_id"/>
|
2010-07-19 09:00:56 +00:00
|
|
|
<field name="categ_id" widget="selection"
|
2011-12-19 18:42:22 +00:00
|
|
|
domain="[('object_id.model', '=', 'crm.phonecall')]"
|
|
|
|
invisible="1"/>
|
2010-05-04 05:50:54 +00:00
|
|
|
<field name="state" invisible="1"/>
|
2010-06-24 12:49:53 +00:00
|
|
|
<field name="create_date" invisible="1"/>
|
2011-12-19 18:42:22 +00:00
|
|
|
<field name="opportunity_id" invisible="1"/>
|
2012-07-02 16:29:01 +00:00
|
|
|
<field name="needaction_pending" invisible="1"/>
|
2010-09-17 13:46:43 +00:00
|
|
|
<button string="Schedule Other Call"
|
|
|
|
icon="terp-call-start"
|
|
|
|
name="%(phonecall_to_phonecall_act)d"
|
|
|
|
type="action" />
|
2010-05-04 05:50:54 +00:00
|
|
|
<button string="Meeting"
|
2011-04-15 06:58:22 +00:00
|
|
|
icon="gtk-redo"
|
2010-05-04 05:50:54 +00:00
|
|
|
name="action_make_meeting" type="object" />
|
2011-12-19 18:42:22 +00:00
|
|
|
<button string="Convert to Opportunity"
|
|
|
|
name="%(phonecall2opportunity_act)d"
|
|
|
|
states="open,pending"
|
|
|
|
icon="gtk-index"
|
|
|
|
type="action" attrs="{'invisible':[('opportunity_id','!=',False)]}" />
|
2010-05-04 05:50:54 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2012-06-21 10:46:40 +00:00
|
|
|
<!-- Phonecalls Calendar View -->
|
2010-03-22 10:40:26 +00:00
|
|
|
|
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
|
|
|
|
2012-06-21 10:46:40 +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">
|
2012-06-25 08:56:35 +00:00
|
|
|
<filter icon="terp-mail-message-new"
|
|
|
|
string="Inbox" help="Unread messages"
|
|
|
|
name="needaction_pending"
|
|
|
|
domain="[('needaction_pending','=',True)]"/>
|
|
|
|
<separator orientation="vertical"/>
|
2012-06-22 10:29:59 +00:00
|
|
|
<field name="name" string="Phonecalls"/>
|
2012-06-19 06:42:51 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="date"/>
|
2012-06-11 16:22:53 +00:00
|
|
|
<separator orientation="vertical"/>
|
2012-06-19 06:42:51 +00:00
|
|
|
<filter icon="terp-gtk-go-back-rtl" string="To Do" name="current" domain="[('state','=','open')]"/>
|
2012-06-22 10:29:59 +00:00
|
|
|
<filter string="Unassigned Phonecalls"
|
2012-05-21 09:58:47 +00:00
|
|
|
icon="terp-personal-"
|
2010-04-06 16:15:10 +00:00
|
|
|
domain="[('user_id','=',False)]"
|
2012-06-11 16:22:53 +00:00
|
|
|
help="Unassigned Phonecalls"/>
|
|
|
|
<filter string="Phone Calls Assigned to Me or My Team(s)"
|
2012-05-28 06:22:05 +00:00
|
|
|
icon="terp-personal+"
|
2012-06-21 10:46:40 +00:00
|
|
|
domain="['|', ('section_id.user_id','=',uid), ('section_id.member_ids', 'in', [uid])]"
|
2012-06-11 16:22:53 +00:00
|
|
|
help="Phone Calls that are assigned to me or to my team(s)" />
|
2011-09-19 07:09:09 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="partner_id"/>
|
2012-06-11 16:22:53 +00:00
|
|
|
<field name="user_id"/>
|
2011-09-19 07:09:09 +00:00
|
|
|
<field name="section_id"
|
2012-06-11 16:22:53 +00:00
|
|
|
widget="selection" string="Sales Team"/>
|
2011-09-19 07:09:09 +00:00
|
|
|
<newline/>
|
|
|
|
<group expand="0" string="Group By...">
|
|
|
|
<filter string="Partner" icon="terp-partner" domain="[]"
|
|
|
|
context="{'group_by':'partner_id'}" />
|
|
|
|
<filter string="Responsible" icon="terp-personal"
|
|
|
|
domain="[]" context="{'group_by':'user_id'}" />
|
|
|
|
<separator orientation="vertical" />
|
|
|
|
<filter string="Creation" icon="terp-go-month" help="Creation Date"
|
|
|
|
domain="[]" context="{'group_by':'create_date'}" />
|
|
|
|
<filter string="Date" icon="terp-go-month" domain="[]"
|
|
|
|
context="{'group_by':'date'}" help="Date of Call" />
|
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
2012-03-19 10:09:54 +00:00
|
|
|
</record>
|
2010-06-07 12:35:16 +00:00
|
|
|
|
2009-12-04 14:15:17 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|