From 5b1ba838126dfea0109ff860263259ce563eec6a Mon Sep 17 00:00:00 2001 From: "rpa (Open ERP)" Date: Fri, 9 Jul 2010 18:24:25 +0530 Subject: [PATCH 1/2] [IMP]: crm: Improved Statistics Dashboard bzr revid: rpa@tinyerp.com-20100709125425-fn0qkegnw4chlr2a --- addons/crm/board_crm_statistical_view.xml | 84 ++++++++++++++--------- 1 file changed, 50 insertions(+), 34 deletions(-) diff --git a/addons/crm/board_crm_statistical_view.xml b/addons/crm/board_crm_statistical_view.xml index 1baf673990d..b23fdeac1cd 100644 --- a/addons/crm/board_crm_statistical_view.xml +++ b/addons/crm/board_crm_statistical_view.xml @@ -4,53 +4,69 @@ - - Leads By Stage - Graph - crm.lead.report - graph - - - - - - - - - report.crm.opportunity.categ.graph + + Opportunities By Categories - Graph crm.lead.report graph - + - + + Opportunities By Stage - Graph + crm.lead.report + graph + + + + + + + + + + Opportunities By Stage Per User - Graph + crm.lead.report + graph + + + + + + + + - + + Opportunities By Categories crm.lead.report form graph,tree,form - + [('state','!=','done'),('state','!=','cancel')] - + + crm.lead.report + form + graph,tree,form + + [('state','!=','done'),('state','!=','cancel')] + + + + Number of Opportunities by stage + crm.lead.report + form + graph,tree,form + + [('state','!=','cancel')] + CRM - Statistical Dashboard Form @@ -68,8 +84,8 @@ width="250"/> @@ -77,8 +93,8 @@ From 6ad5e679300776a7125d558698ac29d7e43f7d44 Mon Sep 17 00:00:00 2001 From: "Harry (OpenERP)" Date: Fri, 9 Jul 2010 19:05:29 +0530 Subject: [PATCH 2/2] [FIX] Calendar: minor improvement bzr revid: hmo@tinyerp.com-20100709133529-68fftd7xbjz69uoq --- addons/base_calendar/base_calendar.py | 19 ++++++++------ addons/base_calendar/base_calendar_view.xml | 25 ++++++++++++++----- .../wizard/base_calendar_invite_attendee.py | 7 +++--- addons/crm/crm_meeting_view.xml | 15 +---------- 4 files changed, 36 insertions(+), 30 deletions(-) diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index 9458e3e01a6..85ec16bda8d 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -379,6 +379,9 @@ property or property parameter."), _defaults = { 'state': 'needs-action', 'user_id': lambda self, cr, uid, ctx: uid, + 'role': 'req-participant', + 'rsvp': True, + 'cutype': 'individual', } def copy(self, cr, uid, id, default=None, context=None): @@ -543,13 +546,13 @@ property or property parameter."), context = {} for vals in self.browse(cr, uid, ids, context=context): - user = vals.user_id - if user: - mod_obj = self.pool.get(vals.ref._name) - if vals.ref: - if vals.ref.user_id.id != user.id: - defaults = {'user_id': user.id} - new_event = mod_obj.copy(cr, uid, vals.ref.id, default=defaults, context=context) + #user = vals.user_id + #if user: + # mod_obj = self.pool.get(vals.ref._name) + # if vals.ref: + # if vals.ref.user_id.id != user.id: + # defaults = {'user_id': user.id} + # new_event = mod_obj.copy(cr, uid, vals.ref.id, default=defaults, context=context) self.write(cr, uid, vals.id, {'state': 'accepted'}, context) return True @@ -1417,6 +1420,8 @@ true, it will allow you to hide the event alarm information without removing it. until_date = arg[2] res = super(calendar_event, self).search(cr, uid, args_without_date, \ offset, limit, order, context, count) + #Search Event ID which are invitted + return self.get_recurrent_ids(cr, uid, res, start_date, until_date, limit) diff --git a/addons/base_calendar/base_calendar_view.xml b/addons/base_calendar/base_calendar_view.xml index bb0412a2247..cb2ca806afa 100644 --- a/addons/base_calendar/base_calendar_view.xml +++ b/addons/base_calendar/base_calendar_view.xml @@ -76,13 +76,26 @@ tree - - - - + + + - - + +