2010-01-20 07:30:06 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
2010-03-18 08:46:13 +00:00
|
|
|
<data>
|
|
|
|
|
|
|
|
<!-- CRM Claim Report Tree View -->
|
2010-01-20 07:30:06 +00:00
|
|
|
|
2010-03-02 14:06:35 +00:00
|
|
|
<record id="view_report_crm_claim_tree" model="ir.ui.view">
|
2010-03-05 13:17:53 +00:00
|
|
|
<field name="name">crm.claim.report.tree</field>
|
|
|
|
<field name="model">crm.claim.report</field>
|
2010-01-20 07:30:06 +00:00
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-03-03 08:54:24 +00:00
|
|
|
<tree string="Claims">
|
2010-09-28 21:53:48 +00:00
|
|
|
<field name="name" invisible="1"/>
|
|
|
|
<field name="month" invisible="1"/>
|
|
|
|
<field name="section_id" invisible="1"/>
|
2010-04-21 10:12:25 +00:00
|
|
|
<field name="user_id" invisible="1"/>
|
|
|
|
<field name="company_id" invisible="1"/>
|
|
|
|
<field name="partner_id" invisible="1"/>
|
|
|
|
<field name="day" invisible="1"/>
|
2010-09-28 21:53:48 +00:00
|
|
|
<field name="nbr" string="#Claim" sum="#Claim"/>
|
|
|
|
<field name="delay_close" avg="Avg Closing Delay"/>
|
|
|
|
<field name="delay_expected"/>
|
|
|
|
<field name="state" invisible="1"/>
|
|
|
|
<field name="stage_id" invisible="1"/>
|
|
|
|
<field name="categ_id" invisible="1"/>
|
|
|
|
<field name="priority" invisible="1"/>
|
|
|
|
<field name="type_action" invisible="1"/>
|
2010-03-02 14:06:35 +00:00
|
|
|
</tree>
|
2010-01-20 07:30:06 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-18 08:46:13 +00:00
|
|
|
|
|
|
|
<!-- CRM Claim Report Form View -->
|
|
|
|
|
2010-03-05 15:42:53 +00:00
|
|
|
<record id="view_report_crm_claim_form" model="ir.ui.view">
|
2010-03-05 13:17:53 +00:00
|
|
|
<field name="name">crm.claim.report.form</field>
|
|
|
|
<field name="model">crm.claim.report</field>
|
2010-01-20 07:30:06 +00:00
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-09-28 21:53:48 +00:00
|
|
|
<form string="Cases">
|
2010-05-06 06:44:00 +00:00
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="month" select="1"/>
|
|
|
|
<field name="user_id" select="1"/>
|
2010-09-28 21:53:48 +00:00
|
|
|
<field name="section_id" select="1"/>
|
2010-05-06 06:44:00 +00:00
|
|
|
<field name="nbr" select="1"/>
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="delay_close"/>
|
2010-09-21 07:17:53 +00:00
|
|
|
<field name="delay_expected"/>
|
2010-01-20 07:30:06 +00:00
|
|
|
<field name="amount_revenue"/>
|
|
|
|
<field name="amount_costs"/>
|
|
|
|
<field name="amount_revenue_prob"/>
|
|
|
|
<field name="probability"/>
|
2010-05-06 06:44:00 +00:00
|
|
|
<field name="state" select="1"/>
|
|
|
|
</form>
|
2010-01-20 07:30:06 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-18 08:46:13 +00:00
|
|
|
|
|
|
|
<!-- CRM Claim Report Graph View -->
|
|
|
|
|
2010-03-05 15:42:53 +00:00
|
|
|
<record id="view_report_crm_claim_graph" model="ir.ui.view">
|
2010-03-05 13:17:53 +00:00
|
|
|
<field name="name">crm.claim.report.graph</field>
|
|
|
|
<field name="model">crm.claim.report</field>
|
2010-01-20 07:30:06 +00:00
|
|
|
<field name="type">graph</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-03-03 07:15:21 +00:00
|
|
|
<graph orientation="horizontal" string="Claims" type="bar">
|
2010-01-20 07:30:06 +00:00
|
|
|
<field name="state"/>
|
|
|
|
<field name="nbr" operator="+"/>
|
|
|
|
<field group="True" name="user_id"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-03-18 08:46:13 +00:00
|
|
|
<!-- CRM Claim Report Search View -->
|
|
|
|
|
2010-09-28 21:53:48 +00:00
|
|
|
<record id="view_report_crm_claim_filter" model="ir.ui.view">
|
2010-03-05 13:17:53 +00:00
|
|
|
<field name="name">crm.claim.report.select</field>
|
|
|
|
<field name="model">crm.claim.report</field>
|
2010-01-20 07:30:06 +00:00
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-05-21 12:41:08 +00:00
|
|
|
<search string="Search">
|
|
|
|
<group col="16" colspan="8">
|
2010-10-14 05:41:30 +00:00
|
|
|
<filter string=" Year " icon="terp-go-year"
|
2010-09-28 21:53:48 +00:00
|
|
|
domain="[('create_date','<=', time.strftime('%%Y-%%m-%%d')),('create_date','>=',time.strftime('%%Y-01-01'))]"
|
|
|
|
help="Claims created in current year"/>
|
2010-05-21 12:41:08 +00:00
|
|
|
|
2010-09-21 07:17:53 +00:00
|
|
|
<filter string=" Month " icon="terp-go-month" name="This Month"
|
2010-10-13 13:13:43 +00:00
|
|
|
domain="[('create_date','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('create_date','>=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
|
2010-09-28 21:53:48 +00:00
|
|
|
help="Claims created in current month"/>
|
2010-05-21 12:41:08 +00:00
|
|
|
|
2010-09-23 13:32:48 +00:00
|
|
|
<filter icon="terp-go-month" string=" Month-1 " separator="1"
|
2011-01-13 11:42:07 +00:00
|
|
|
domain="[('create_date','<=', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('create_date','>=',(datetime.date.today() - relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]"
|
2010-09-23 13:32:48 +00:00
|
|
|
help="Claims created in last month"/>
|
2010-05-21 12:41:08 +00:00
|
|
|
|
2010-10-04 05:47:57 +00:00
|
|
|
<separator orientation="vertical" />
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter icon="terp-document-new"
|
2010-09-28 21:53:48 +00:00
|
|
|
string="Draft"
|
|
|
|
domain="[('state','=','draft')]"/>
|
2010-10-04 05:47:57 +00:00
|
|
|
<filter icon="terp-camera_test"
|
2010-09-28 21:53:48 +00:00
|
|
|
string="Open"
|
|
|
|
domain="[('state','=','open')]"/>
|
2010-10-04 05:47:57 +00:00
|
|
|
<filter icon="terp-gtk-media-pause"
|
2010-09-28 21:53:48 +00:00
|
|
|
string="Pending"
|
|
|
|
domain="[('state','=','pending')]"/>
|
|
|
|
|
2010-10-04 05:47:57 +00:00
|
|
|
<separator orientation="vertical" />
|
|
|
|
<field name="section_id" string="Sales Team"
|
|
|
|
default="context.get('section_id', False)"
|
|
|
|
context="{'invisible_section': False}">
|
|
|
|
|
2010-10-05 06:48:31 +00:00
|
|
|
<filter icon="terp-personal+" groups="base.group_extended"
|
2010-10-04 05:47:57 +00:00
|
|
|
context="{'invisible_section': False}"
|
|
|
|
domain="[('section_id.user_id','=',uid)]"
|
2010-10-05 06:48:31 +00:00
|
|
|
help="My Sales Team(s)" />
|
2010-10-04 05:47:57 +00:00
|
|
|
|
|
|
|
</field>
|
|
|
|
<field name="company_id">
|
|
|
|
<filter icon="terp-go-home"
|
|
|
|
context="{'invisible_section': False}"
|
|
|
|
domain="[('section_id.user_id.company_id','=',uid)]"
|
|
|
|
help="My company"/>
|
2010-05-21 12:41:08 +00:00
|
|
|
</field>
|
|
|
|
|
2010-10-04 05:47:57 +00:00
|
|
|
<field name="user_id" string="Salesman" select="1">
|
|
|
|
<filter icon="terp-personal" string="My Case(s)" help="My Case(s)" domain="[('user_id','=',uid)]" />
|
|
|
|
</field>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<group expand="0" string="Extended Filters..." groups="base.group_extended">
|
|
|
|
<filter icon="terp-dialog-close"
|
2010-09-27 06:23:07 +00:00
|
|
|
string="Done"
|
|
|
|
domain="[('state','=','done')]"/>
|
|
|
|
<filter icon="gtk-cancel"
|
|
|
|
string="Cancel"
|
|
|
|
domain="[('state','=','cancel')]"/>
|
2010-10-04 06:03:16 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="stage_id" widget="selection" domain="[('object_id.model', '=', 'crm.claim')]"/>
|
|
|
|
<field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.claim')]"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="priority" />
|
|
|
|
<field name="type_action" />
|
|
|
|
<newline/>
|
|
|
|
<field name="date_closed" />
|
|
|
|
<field name="date_deadline" />
|
2010-10-04 05:47:57 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<group expand="1" string="Group By...">
|
2010-09-28 13:41:07 +00:00
|
|
|
<filter string="Salesman" name="Salesman" icon="terp-personal"
|
2010-05-24 06:26:13 +00:00
|
|
|
domain="[]" context="{'group_by':'user_id'}" />
|
2010-09-21 07:17:53 +00:00
|
|
|
<filter string="Sales Team" icon="terp-personal+"
|
2010-05-24 06:26:13 +00:00
|
|
|
domain="[]"
|
|
|
|
context="{'group_by':'section_id'}" />
|
2010-10-04 06:03:16 +00:00
|
|
|
<filter string="Partner" name="partner" icon="terp-partner"
|
|
|
|
domain="[]" context="{'group_by':'partner_id'}" />
|
2010-05-21 12:41:08 +00:00
|
|
|
<separator orientation="vertical" />
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter string="Stage" icon="terp-stage" domain="[]"
|
2010-10-04 05:47:57 +00:00
|
|
|
context="{'group_by':'stage_id'}" />
|
2010-09-21 07:17:53 +00:00
|
|
|
<filter string="Priority" icon="terp-rating-rated" domain="[]"
|
2010-10-04 05:47:57 +00:00
|
|
|
context="{'group_by':'priority'}" />
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter string="Category" icon="terp-stock_symbol-selection"
|
2010-05-24 06:26:13 +00:00
|
|
|
domain="[]" context="{'group_by':'categ_id'}" />
|
2010-03-18 08:46:13 +00:00
|
|
|
|
2010-05-24 06:26:13 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-09-21 07:17:53 +00:00
|
|
|
<filter string="Type" icon="terp-stock_symbol-selection" domain="[]"
|
2010-10-04 06:03:16 +00:00
|
|
|
context="{'group_by':'type_action'}" help="Action Type"/>
|
2010-09-21 07:17:53 +00:00
|
|
|
<filter string="State" icon="terp-stock_effects-object-colorize"
|
|
|
|
domain="[]" context="{'group_by':'state'}" />
|
|
|
|
<separator orientation="vertical" />
|
|
|
|
<filter string="Company" icon="terp-go-home"
|
|
|
|
domain="[]"
|
|
|
|
context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
2010-10-04 05:47:57 +00:00
|
|
|
|
2010-05-21 12:41:08 +00:00
|
|
|
<separator orientation="vertical" />
|
2010-06-16 11:41:41 +00:00
|
|
|
<filter string="Day" icon="terp-go-today"
|
2010-09-21 07:17:53 +00:00
|
|
|
domain="[]" context="{'group_by':'day'}"
|
|
|
|
help="Date of claim"/>
|
2010-05-21 12:41:08 +00:00
|
|
|
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter string="Month" icon="terp-go-month"
|
2010-09-21 07:17:53 +00:00
|
|
|
domain="[]" context="{'group_by':'month'}"
|
|
|
|
help="Month of claim"/>
|
2010-05-21 12:41:08 +00:00
|
|
|
|
2010-06-07 12:35:16 +00:00
|
|
|
<filter string="Year" icon="terp-go-year"
|
2010-09-21 07:17:53 +00:00
|
|
|
domain="[]" context="{'group_by':'name'}"
|
|
|
|
help="Year of claim"/>
|
2010-10-04 05:47:57 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
2010-01-20 07:30:06 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-18 08:46:13 +00:00
|
|
|
|
|
|
|
<!-- CRM Claim Report Action -->
|
2010-03-03 07:31:24 +00:00
|
|
|
|
2010-03-03 08:54:24 +00:00
|
|
|
<record id="action_report_crm_claim" model="ir.actions.act_window">
|
2010-09-21 07:17:53 +00:00
|
|
|
<field name="name">Claims Analysis</field>
|
2010-03-05 13:17:53 +00:00
|
|
|
<field name="res_model">crm.claim.report</field>
|
2010-01-20 07:30:06 +00:00
|
|
|
<field name="view_type">form</field>
|
2010-10-04 05:47:57 +00:00
|
|
|
<field name="view_mode">tree,graph</field>
|
|
|
|
<field name="context">{"search_default_User":1,"search_default_This Month":1,'group_by_no_leaf':1,'group_by':[]}</field>
|
2010-03-05 05:33:51 +00:00
|
|
|
<field name="view_id" ref="view_report_crm_claim_tree"/>
|
2010-03-05 15:42:53 +00:00
|
|
|
<field name="search_view_id" ref="view_report_crm_claim_filter"/>
|
2010-01-20 07:30:06 +00:00
|
|
|
</record>
|
2010-03-18 08:46:13 +00:00
|
|
|
|
2010-10-04 05:47:57 +00:00
|
|
|
<record model="ir.actions.act_window.view" id="action_report_crm_claim_tree">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="sequence" eval="1"/>
|
|
|
|
<field name="view_mode">tree</field>
|
|
|
|
<field name="view_id" ref="view_report_crm_claim_tree"/>
|
|
|
|
<field name="act_window_id" ref="action_report_crm_claim"/>
|
|
|
|
</record>
|
|
|
|
|
2010-10-04 05:47:57 +00:00
|
|
|
<record model="ir.actions.act_window.view" id="action_report_crm_claim_graph">
|
2010-04-18 15:32:44 +00:00
|
|
|
<field name="sequence" eval="2"/>
|
|
|
|
<field name="view_mode">graph</field>
|
|
|
|
<field name="view_id" ref="view_report_crm_claim_graph"/>
|
|
|
|
<field name="act_window_id" ref="action_report_crm_claim"/>
|
|
|
|
</record>
|
|
|
|
|
2010-10-04 05:47:57 +00:00
|
|
|
<menuitem name="Claims Analysis" id="menu_report_crm_claim_tree"
|
|
|
|
groups="base.group_extended"
|
|
|
|
action="action_report_crm_claim" parent="base.next_id_64" sequence="6"/>
|
2010-01-29 07:35:52 +00:00
|
|
|
|
2010-01-20 07:30:06 +00:00
|
|
|
|
2010-03-18 08:46:13 +00:00
|
|
|
</data>
|
2010-03-03 07:15:21 +00:00
|
|
|
</openerp>
|