[FIX] board_crm_configuration: Changed object names which were in report_crm. Removed dependancy of report_crm.
bzr revid: uco@tinyerp.co.in-20100308124546-jqm1u0wnz8iv1ole
This commit is contained in:
@@ -34,7 +34,7 @@ This module implements a dashboard for CRM that includes:
|
||||
* Jobs Tracking (graph)
|
||||
""",
|
||||
'author': 'Tiny',
|
||||
'depends': ['board', 'crm', 'report_crm'],
|
||||
'depends': ['board', 'crm'],
|
||||
'update_xml': ['board_crm_statistical_view.xml', 'board_crm_view.xml'],
|
||||
'demo_xml': ['board_crm_demo.xml'],
|
||||
'installable': True,
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
-->
|
||||
<record model="ir.ui.view" id="view_crm_lead_stage_graph1">
|
||||
<field name="name">Leads By Stage - Graph</field>
|
||||
<field name="model">report.crm.lead.section.stage</field>
|
||||
<field name="model">crm.lead.report</field>
|
||||
<field name="type">graph</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Leads By Stage" type="pie">
|
||||
@@ -18,11 +18,11 @@
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="view_crm_opportunity_categ_graph">
|
||||
<field name="name">report.crm.opportunity.categ.graph</field>
|
||||
<field name="model">report.crm.opportunity.categ</field>
|
||||
<field name="name">crm.opportunity.report.graph</field>
|
||||
<field name="model">crm.opportunity.report</field>
|
||||
<field name="type">graph</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Opportunity by Sections and Categories" type="bar" orientation="horizontal">
|
||||
<graph string="Opportunities" type="bar" orientation="horizontal">
|
||||
<field name="categ_id"/>
|
||||
<field name="nbr" operator="+"/>
|
||||
<field name="state" group="True"/>
|
||||
@@ -32,14 +32,14 @@
|
||||
|
||||
<act_window name="Opportunities By Categories"
|
||||
domain="[('state','!=','done'),('state','!=','cancel')]"
|
||||
res_model="report.crm.opportunity.categ"
|
||||
res_model="crm.opportunity.report"
|
||||
view_type="form"
|
||||
view_mode="graph,tree,form"
|
||||
view_id="view_crm_opportunity_categ_graph"
|
||||
id="act_oppor_categ"/>
|
||||
|
||||
<record model="ir.actions.act_window" id="act_leads_state">
|
||||
<field name="res_model">report.crm.lead.section.stage</field>
|
||||
<field name="res_model">crm.lead.report</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">graph,tree,form</field>
|
||||
<field name="view_id" ref="view_crm_lead_stage_graph1"/>
|
||||
@@ -47,8 +47,8 @@
|
||||
</record>
|
||||
|
||||
<act_window name="Leads Of The Month By User"
|
||||
domain="[('month','=',time.strftime('%%m')),('state','!=','cancel')]"
|
||||
res_model="report.crm.lead.user"
|
||||
domain="[('month','=',time.strftime('%%m')),('state','!=','cancel'),('user_id','=',uid)]"
|
||||
res_model="crm.lead.report"
|
||||
view_type="form"
|
||||
view_mode="graph,tree,form"
|
||||
view_id="view_crm_lead_stage_graph1"
|
||||
@@ -63,14 +63,14 @@
|
||||
<hpaned>
|
||||
<child1>
|
||||
<action
|
||||
string="Opportunities By Categories"
|
||||
string="Opportunities"
|
||||
name="%(act_oppor_categ)d"
|
||||
colspan="4"
|
||||
height="200"
|
||||
width="250"/>
|
||||
|
||||
<action
|
||||
string="Leads By Stage"
|
||||
string="Leads"
|
||||
name="%(act_leads_state)d"
|
||||
height="200"
|
||||
colspan="4"/>
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="view_crm_opportunity_user_graph1">
|
||||
<field name="name">crm.opportunity.user.graph1</field>
|
||||
<field name="model">report.crm.opportunity.user</field>
|
||||
<field name="name">crm.opportunity.report.graph1</field>
|
||||
<field name="model">crm.opportunity.report</field>
|
||||
<field name="type">graph</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Opportunities by User and Section" type="pie">
|
||||
@@ -41,7 +41,7 @@
|
||||
id="act_my_cases"/>
|
||||
|
||||
<record model="ir.actions.act_window" id="act_my_leads_stage">
|
||||
<field name="res_model">report.crm.lead.section.stage</field>
|
||||
<field name="res_model">crm.lead.report</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">graph,tree,form</field>
|
||||
<field name="view_id" ref="view_crm_lead_stage_graph1"/>
|
||||
@@ -49,7 +49,7 @@
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="act_sales_pipeline">
|
||||
<field name="res_model">report.crm.opportunity.user</field>
|
||||
<field name="res_model">crm.opportunity.report</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">graph,tree,form</field>
|
||||
<field name="view_id" ref="view_crm_opportunity_user_graph1"/>
|
||||
|
||||
+1
-1
@@ -280,7 +280,7 @@ class crm_case(osv.osv):
|
||||
'section_id': _get_section,
|
||||
'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.case', context=c),
|
||||
}
|
||||
_order = 'date_deadline desc, date desc,id desc'
|
||||
_order = 'date_deadline desc, id desc'
|
||||
|
||||
def unlink(self, cr, uid, ids, context={}):
|
||||
for case in self.browse(cr, uid, ids, context):
|
||||
|
||||
Reference in New Issue
Block a user