2008-07-01 15:58:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2010-03-16 12:45:05 +00:00
|
|
|
<data>
|
2009-12-08 07:25:05 +00:00
|
|
|
|
2010-03-03 07:14:05 +00:00
|
|
|
<record id="view_crm_case_tree" model="ir.ui.view">
|
2010-03-05 13:17:53 +00:00
|
|
|
<field name="name">crm.case.report.tree</field>
|
|
|
|
<field name="model">crm.case.report</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-03-03 08:54:24 +00:00
|
|
|
<tree string="Cases">
|
2009-11-24 13:34:15 +00:00
|
|
|
<field name="name" />
|
|
|
|
<field name="month"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="user_id"/>
|
2010-03-05 09:31:42 +00:00
|
|
|
<field name="company_id"/>
|
2010-01-25 08:21:36 +00:00
|
|
|
<field name="section_id"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="nbr"/>
|
|
|
|
<field name="state"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-03 07:14:05 +00:00
|
|
|
<record id="view_crm_case_form" model="ir.ui.view">
|
2010-03-05 13:17:53 +00:00
|
|
|
<field name="name">crm.case.report.form</field>
|
|
|
|
<field name="model">>crm.case.report</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-03-03 08:54:24 +00:00
|
|
|
<form string="Cases">
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="name" select="1"/>
|
2009-11-24 13:34:15 +00:00
|
|
|
<field name="month" select="1"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="user_id" select="1"/>
|
2010-01-25 08:21:36 +00:00
|
|
|
<field name="section_id" select="1"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="nbr" select="1"/>
|
|
|
|
<field name="state" select="1"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-12-08 07:25:05 +00:00
|
|
|
|
2010-03-03 07:14:05 +00:00
|
|
|
<record id="view_crm_case_graph" model="ir.ui.view">
|
2010-03-05 13:17:53 +00:00
|
|
|
<field name="name">crm.case.report</field>
|
|
|
|
<field name="model">crm.case.report</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="type">graph</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph orientation="horizontal" string="Cases by User and Section" type="bar">
|
|
|
|
<field name="state"/>
|
|
|
|
<field name="nbr" operator="+"/>
|
|
|
|
<field group="True" name="user_id"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-12-08 07:25:05 +00:00
|
|
|
|
2010-03-03 07:14:05 +00:00
|
|
|
<record id="view_crm_case_filter" model="ir.ui.view">
|
2010-03-05 13:17:53 +00:00
|
|
|
<field name="name">crm.case.report.select</field>
|
|
|
|
<field name="model">crm.case.report</field>
|
2009-12-08 07:25:05 +00:00
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-03-03 08:54:24 +00:00
|
|
|
<search string="Search">
|
2010-03-02 13:47:50 +00:00
|
|
|
<group col="16" colspan="8">
|
2010-03-05 07:30:14 +00:00
|
|
|
<filter string="This Year" icon="terp-hr" domain="[('name','=',time.localtime()[0])]" default="1" />
|
|
|
|
<filter string="This Month" icon="terp-hr" domain="[('month','=',time.strftime('%%m'))]" default="1"/>
|
2010-03-16 12:45:05 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-03-03 11:35:55 +00:00
|
|
|
<filter string="Current" icon="terp-hr" domain="[('state','in',('open','draft'))]"/>
|
2010-03-02 13:47:50 +00:00
|
|
|
<filter string="Won" icon="terp-hr" domain="[('state','=','done')]"/>
|
2010-03-03 09:34:15 +00:00
|
|
|
<filter string="Lost" icon="terp-hr" domain="[('state','=','cancel')]"/>
|
2010-03-16 12:45:05 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-03-03 09:34:15 +00:00
|
|
|
<field name="section_id" default="context.get('section_id', False)" widget="selection"
|
|
|
|
context="{'invisible_section': False}">
|
|
|
|
<filter icon="terp-crm"
|
|
|
|
context="{'invisible_section': False}"
|
|
|
|
domain="[('section_id.user_id','=',uid)]"
|
|
|
|
help="My section"/>
|
2010-03-05 12:52:16 +00:00
|
|
|
</field>
|
|
|
|
<field name="company_id" widget="selection">
|
|
|
|
<filter icon="terp-crm"
|
|
|
|
context="{'invisible_section': False}"
|
|
|
|
domain="[('section_id.user_id.company_id','=',uid)]"
|
|
|
|
help="My company"/>
|
2010-03-03 09:34:15 +00:00
|
|
|
</field>
|
2010-03-16 12:45:05 +00:00
|
|
|
<field name="user_id" select="1" widget="selection">
|
|
|
|
<filter icon="terp-crm" string="My Task" domain="[('user_id','=',uid)]" />
|
|
|
|
</field>
|
2009-12-08 07:25:05 +00:00
|
|
|
</group>
|
2010-03-03 07:14:05 +00:00
|
|
|
<newline/>
|
2010-03-02 13:47:50 +00:00
|
|
|
<group expand="1" string="Group By..." colspan="4" col="8">
|
2010-03-05 07:30:14 +00:00
|
|
|
<filter string="User" icon="terp-sale" domain="[]" context="{'group_by':'user_id'}" default="1" />
|
2010-03-05 09:31:42 +00:00
|
|
|
<filter string="Company" icon="terp-sale" domain="[]" context="{'group_by':'company_id'}"/>
|
2010-03-02 13:47:50 +00:00
|
|
|
<filter string="Section" icon="terp-sale" domain="[]" context="{'group_by':'section_id'}"/>
|
2010-03-05 07:30:14 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-03-02 13:47:50 +00:00
|
|
|
<filter string="State" icon="terp-sale" domain="[]" context="{'group_by':'state'}"/>
|
2010-03-05 07:30:14 +00:00
|
|
|
<filter string="Category" icon="terp-sale" domain="[]" context="{'group_by':'categ_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-03-02 13:47:50 +00:00
|
|
|
<filter string="Month" icon="terp-sale" domain="[]" context="{'group_by':'month'}"/>
|
2010-03-03 09:51:22 +00:00
|
|
|
<filter string="Year" icon="terp-sale" domain="[]" context="{'group_by':'name'}"/>
|
2010-03-16 12:45:05 +00:00
|
|
|
|
2010-03-02 13:47:50 +00:00
|
|
|
</group>
|
2009-12-08 07:25:05 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-16 12:45:05 +00:00
|
|
|
<menuitem id="base.next_id_64" name="Reporting" parent="base.menu_base_partner" sequence="8"/>
|
2009-12-08 07:25:05 +00:00
|
|
|
|
|
|
|
|
2010-03-03 07:14:05 +00:00
|
|
|
<record id="action_report_crm_case_tree" model="ir.actions.act_window">
|
2010-03-03 08:54:24 +00:00
|
|
|
<field name="name">Cases</field>
|
2010-03-05 13:17:53 +00:00
|
|
|
<field name="res_model">crm.case.report</field>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="view_type">form</field>
|
2009-12-09 13:38:11 +00:00
|
|
|
<field name="view_mode">tree,graph</field>
|
2010-03-03 07:14:05 +00:00
|
|
|
<field name="search_view_id" ref="view_crm_case_filter"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2010-01-20 07:23:11 +00:00
|
|
|
<!--<menuitem action="action_report_crm_case_user_tree" id="menu_crm_case_user_tree" parent="crm.next_id_52"/>
|
|
|
|
-->
|
|
|
|
<!-- <menuitem action="action_report_crm_case_categ_tree" id="menu_crm_case_categ_tree" parent="crm.next_id_52"/>-->
|
2009-12-08 07:25:05 +00:00
|
|
|
|
2010-03-05 13:17:53 +00:00
|
|
|
<act_window domain="[('user_id', '=', active_id)]" id="act_res_users_2_report_crm_case_user" name="Monthly cases" res_model="crm.case.report" src_model="res.users"/>
|
2009-12-08 07:25:05 +00:00
|
|
|
|
2010-03-05 13:17:53 +00:00
|
|
|
<act_window domain="[('section_id', '=', active_id)]" id="act_crm_case_section_2_report_crm_case_user" name="Monthly cases by user" res_model="crm.case.report" src_model="crm.case.section"/>
|
2009-12-08 07:25:05 +00:00
|
|
|
|
2010-03-05 13:17:53 +00:00
|
|
|
<act_window domain="[('section_id', '=', active_id)]" id="act_crm_case_section_2_report_crm_case_categ" name="Monthly cases by section" res_model="crm.case.report" src_model="crm.case.section"/>
|
2009-12-08 07:25:05 +00:00
|
|
|
|
2010-03-16 12:45:05 +00:00
|
|
|
|
2010-01-29 07:35:52 +00:00
|
|
|
|
2010-01-20 10:46:58 +00:00
|
|
|
|
2009-12-08 07:25:05 +00:00
|
|
|
<!-- Closed & Open CRM Case view for Random Activities dashboard -->
|
|
|
|
|
2009-03-14 12:35:39 +00:00
|
|
|
<record id="board_view_crm_case_open_dashboard_tree" model="ir.ui.view">
|
2009-03-20 12:08:14 +00:00
|
|
|
<field name="name">report.crm.case.service.dashboard.tree</field>
|
|
|
|
<field name="model">report.crm.case.service.dashboard</field>
|
2009-03-14 12:35:39 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2009-03-20 12:08:14 +00:00
|
|
|
<tree string="CRM Cases">
|
|
|
|
<field name="create_date" select="1"/>
|
2009-03-14 12:35:39 +00:00
|
|
|
<field name="date_deadline"/>
|
2009-03-20 12:08:14 +00:00
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="user_id" select="2"/>
|
|
|
|
<field name="state" />
|
2009-03-14 12:35:39 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-12-08 07:25:05 +00:00
|
|
|
|
2009-03-14 12:35:39 +00:00
|
|
|
<record id="board_view_crm_case_done_dashboard_tree" model="ir.ui.view">
|
2009-03-20 12:08:14 +00:00
|
|
|
<field name="name">report.crm.case.service.dashboard.tree</field>
|
|
|
|
<field name="model">report.crm.case.service.dashboard</field>
|
2009-03-14 12:35:39 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2009-03-20 12:08:14 +00:00
|
|
|
<tree string="CRM Cases">
|
2009-03-14 12:35:39 +00:00
|
|
|
<field name="name"/>
|
2009-03-20 12:08:14 +00:00
|
|
|
<field name="user_id" select="2"/>
|
|
|
|
<field name="state" />
|
2009-03-14 12:35:39 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
2009-12-08 07:25:05 +00:00
|
|
|
</record>
|
|
|
|
|
2009-03-14 12:35:39 +00:00
|
|
|
<record id="action_view_closed_crm_case_dashboard" model="ir.actions.act_window">
|
2009-04-02 09:44:17 +00:00
|
|
|
<field name="name">Closed CRM Cases Within Past 15 Days</field>
|
2009-03-14 12:35:39 +00:00
|
|
|
<field name="res_model">report.crm.case.service.dashboard</field>
|
|
|
|
<field name="view_type">form</field>
|
2009-03-25 12:49:38 +00:00
|
|
|
<field name="view_mode">tree,form</field>
|
2009-03-14 12:35:39 +00:00
|
|
|
<field name="view_id" ref="board_view_crm_case_done_dashboard_tree"/>
|
|
|
|
<field name="domain">[('state','=','done')]</field>
|
|
|
|
</record>
|
2009-12-08 07:25:05 +00:00
|
|
|
|
2009-03-14 12:35:39 +00:00
|
|
|
<record id="action_view_open_crm_case_dashboard" model="ir.actions.act_window">
|
2009-04-02 09:44:17 +00:00
|
|
|
<field name="name">Open CRM Cases Within Past 15 Days</field>
|
2009-03-14 12:35:39 +00:00
|
|
|
<field name="res_model">report.crm.case.service.dashboard</field>
|
|
|
|
<field name="view_type">form</field>
|
2009-03-25 12:49:38 +00:00
|
|
|
<field name="view_mode">tree,form</field>
|
2009-03-14 12:35:39 +00:00
|
|
|
<field name="view_id" ref="board_view_crm_case_open_dashboard_tree"/>
|
|
|
|
<field name="domain">[('state','=','open')]</field>
|
|
|
|
</record>
|
2010-03-16 12:45:05 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|