From 6d3784f954b96811e60560afeb655497e10ad1ad Mon Sep 17 00:00:00 2001 From: "Randhir Mayatra (OpenERP)" Date: Mon, 27 May 2013 19:03:52 +0530 Subject: [PATCH 1/5] [IMP]add the email tempalte bzr revid: rma@tinyerp.com-20130527133352-5ddk1g9040gflfr9 --- addons/base_calendar/base_calendar.py | 202 ++++++++------------ addons/base_calendar/base_calendar_data.xml | 69 +++++++ 2 files changed, 151 insertions(+), 120 deletions(-) diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index 896349ec5e6..bbf2e05923f 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -127,96 +127,6 @@ def _links_get(self, cr, uid, context=None): res = obj.read(cr, uid, ids, ['object', 'name'], context=context) return [(r['object'], r['name']) for r in res] -html_invitation = """ - - - -%(name)s - - - - - - - - - - - - -
Hello,
You are invited for %(company)s Event.
Below are the details of event. Hours and dates expressed in %(timezone)s time.
- - - - - - - - -
-

%(name)s

-
- - - - - - - - - - - - - - - - - - - - - - - - -
-
Start Date
-
:%(start_date)s -
End Date
-
:%(end_date)s
Description:%(description)s
-
Location
-
:%(location)s
-
Event Attendees
-
: -
-
%(attendees)s
-
-
-
- - - - - - - - - - - - - -
From:
%(user)s
--------------------------
%(sign)s
- - -""" - class calendar_attendee(osv.osv): """ Calendar Attendee Information @@ -494,6 +404,39 @@ property or property parameter."), res = cal.serialize() return res + def get_feedback(self, cr, uid, ids,context=None): +# partner_obj = self.browse(cr,uid, ids,context=context) +# url = [] +# for event_id in self.browse(cr, uid, ids, context): +# event_id = event_id.ref.id +# for partner in partner_obj: +# if partner and partner.user_id: +# related_user = partner.user_id +# base_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url') +# query = {'db': cr.dbname} +# fragment = { +# 'login': related_user.login, +# 'model': "crm.meeting", +# 'view_type' : "form", +# 'id': event_id, +# } +# url = urljoin(base_url, "?%s#%s" % (urlencode(query), urlencode(fragment))) +# else : +# url = "https://openerp.my.openerp.com/#" + for event_id in self.browse(cr, uid, ids, context): + event_id = event_id.ref.id + document = self.browse(cr, uid, ids[0], context=context) + print "DOCS ITS CALLED Documents -----------------------------------------",document + partner = document.partner_id + print "partner id",partner + action = 'base_calendar.action_view_event' + print "ACTION -------------------------------------------------->>>>>>>>>>>>>>>>>>>>>>>>>>.",action + partner.signup_prepare() + print "PARTNER UPER OF URTLLLLLLLLLLLLLLLL -------------------------------------------.......................", partner.signup_prepare() + a = partner._get_signup_url_for_action(action=action, view_type='form', res_id=event_id)[partner.id] + print "SIG N UP RETUR",a + return partner._get_signup_url_for_action(action=action, view_type='form', res_id=event_id)[partner.id] + def _send_mail(self, cr, uid, ids, mail_to, email_from=tools.config.get('email_from', False), context=None): """ Send mail for event invitation to event attendees. @@ -506,46 +449,65 @@ property or property parameter."), sign = '
'.join(sign and sign.split('\n') or []) res_obj = att.ref if res_obj: - att_infos = [] + att = [] + att_mail = [] sub = res_obj.name other_invitation_ids = self.search(cr, uid, [('ref', '=', res_obj._name + ',' + str(res_obj.id))]) for att2 in self.browse(cr, uid, other_invitation_ids): - att_infos.append(((att2.user_id and att2.user_id.name) or \ + + att.append(((att2.user_id and att2.user_id.name) or \ (att2.partner_id and att2.partner_id.name) or \ - att2.email) + ' - Status: ' + att2.state.title()) - #dates and times are gonna be expressed in `tz` time (local timezone of the `uid`) + att2.email)) + att_mail.append(att2.email) tz = context.get('tz', pytz.timezone('UTC')) - #res_obj.date and res_obj.date_deadline are in UTC in database so we use context_timestamp() to transform them in the `tz` timezone - date_start = fields.datetime.context_timestamp(cr, uid, datetime.strptime(res_obj.date, tools.DEFAULT_SERVER_DATETIME_FORMAT), context=context) - date_stop = False - if res_obj.date_deadline: - date_stop = fields.datetime.context_timestamp(cr, uid, datetime.strptime(res_obj.date_deadline, tools.DEFAULT_SERVER_DATETIME_FORMAT), context=context) - body_vals = {'name': res_obj.name, - 'start_date': date_start, - 'end_date': date_stop, - 'timezone': tz, - 'description': res_obj.description or '-', - 'location': res_obj.location or '-', - 'attendees': '
'.join(att_infos), - 'user': res_obj.user_id and res_obj.user_id.name or 'OpenERP User', - 'sign': sign, - 'company': company - } - body = html_invitation % body_vals - if mail_to and email_from: - ics_file = self.get_ics_file(cr, uid, res_obj, context=context) - vals = {'email_from': email_from, - 'email_to': mail_to, - 'state': 'outgoing', - 'subject': sub, - 'body_html': body, - 'auto_delete': True} + allday = False + date = fields.datetime.context_timestamp(cr, uid, datetime.strptime(res_obj.date, tools.DEFAULT_SERVER_DATETIME_FORMAT), context=context) + date_deadline = fields.datetime.context_timestamp(cr, uid, datetime.strptime(res_obj.date_deadline, tools.DEFAULT_SERVER_DATETIME_FORMAT), context=context) + if res_obj.allday: + time = "AllDay" + "," + date.strftime('%B-%d-%Y') + tz = '' + elif res_obj.duration < 24: + duration = date + timedelta(hours= res_obj.duration) + time = date.strftime('%B-%d-%Y') + " at (" + date.strftime('%H-%M') + " To " + duration.strftime('%H-%M') + ")" + else : + time = date.strftime('%B-%d-%Y') + " at " + date.strftime('%H-%M') + " To \n" + date_deadline.strftime('%B-%d-%Y') + " at " + date_deadline.strftime('%H-%M') + attendees = '' + + for mail_to in att_mail: + mail_to = mail_to + attendees = mail_to + "," + attendees + footer = self.get_feedback(cr, uid, ids, context=context) + map_url = "http://maps.google.com/maps?oi=map&q=" + body_vals = {'name': res_obj.name, + 'usr': mail_to, + 'responsible': res_obj.user_id and res_obj.user_id.name or 'OpenERP User', + 'company': company, + 'description': res_obj.description or '-', + 'attendees': res_obj.organizer + " - Organizer, " + attendees, + 'time': time, + 'tz': tz, + 'location': res_obj.location or '-', + 'map' : map_url + '+' + str(res_obj.location or '-'), + 'organizer': res_obj.organizer, + 'url' : footer, + } + body_id = self.pool.get('email.template').search(cr, uid, [('subject', '=', 'Meeting Invitation')], context=context) + body = self.pool.get('email.template').browse(cr, uid, body_id[0], context=context).body_html % body_vals + if mail_to and email_from: + ics_file = self.get_ics_file(cr, uid, res_obj, context=context) + vals = {'email_from': email_from, + 'email_to': mail_to, + 'state': 'outgoing', + 'subject': sub, + 'body_html': body, + 'auto_delete': True} if ics_file: vals['attachment_ids'] = [(0,0,{'name': 'invitation.ics', 'datas_fname': 'invitation.ics', 'datas': str(ics_file).encode('base64')})] - self.pool.get('mail.mail').create(cr, uid, vals, context=context) + mail_id= self.pool.get('mail.mail').create(cr, uid, vals, context=context) + self.pool.get('mail.mail').send(cr, uid, [mail_id], context=context) return True def onchange_user_id(self, cr, uid, ids, user_id, *args, **argv): diff --git a/addons/base_calendar/base_calendar_data.xml b/addons/base_calendar/base_calendar_data.xml index 64aa7ba59b6..4c207b3da10 100644 --- a/addons/base_calendar/base_calendar_data.xml +++ b/addons/base_calendar/base_calendar_data.xml @@ -135,4 +135,73 @@ + + + + Meeting Invitation + ${object.user_id.email or ''} + Meeting Invitation + ${object.email} + + + + + +%(name)s + + + + + + + + + + + + + + + + + + + ]]> + + From 75eed7175c5206a8ebe3c07fc98681762e76a3bd Mon Sep 17 00:00:00 2001 From: "Randhir Mayatra (OpenERP)" Date: Thu, 30 May 2013 12:02:08 +0530 Subject: [PATCH 2/5] [IMP] make changes into email template bzr revid: rma@tinyerp.com-20130530063208-fmaijzg9sxmpmi3u --- addons/base_calendar/base_calendar.py | 83 +++++++-------------- addons/base_calendar/base_calendar_data.xml | 55 ++++++-------- 2 files changed, 46 insertions(+), 92 deletions(-) diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index bbf2e05923f..5fe919e9f7a 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -404,39 +404,6 @@ property or property parameter."), res = cal.serialize() return res - def get_feedback(self, cr, uid, ids,context=None): -# partner_obj = self.browse(cr,uid, ids,context=context) -# url = [] -# for event_id in self.browse(cr, uid, ids, context): -# event_id = event_id.ref.id -# for partner in partner_obj: -# if partner and partner.user_id: -# related_user = partner.user_id -# base_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url') -# query = {'db': cr.dbname} -# fragment = { -# 'login': related_user.login, -# 'model': "crm.meeting", -# 'view_type' : "form", -# 'id': event_id, -# } -# url = urljoin(base_url, "?%s#%s" % (urlencode(query), urlencode(fragment))) -# else : -# url = "https://openerp.my.openerp.com/#" - for event_id in self.browse(cr, uid, ids, context): - event_id = event_id.ref.id - document = self.browse(cr, uid, ids[0], context=context) - print "DOCS ITS CALLED Documents -----------------------------------------",document - partner = document.partner_id - print "partner id",partner - action = 'base_calendar.action_view_event' - print "ACTION -------------------------------------------------->>>>>>>>>>>>>>>>>>>>>>>>>>.",action - partner.signup_prepare() - print "PARTNER UPER OF URTLLLLLLLLLLLLLLLL -------------------------------------------.......................", partner.signup_prepare() - a = partner._get_signup_url_for_action(action=action, view_type='form', res_id=event_id)[partner.id] - print "SIG N UP RETUR",a - return partner._get_signup_url_for_action(action=action, view_type='form', res_id=event_id)[partner.id] - def _send_mail(self, cr, uid, ids, mail_to, email_from=tools.config.get('email_from', False), context=None): """ Send mail for event invitation to event attendees. @@ -444,22 +411,19 @@ property or property parameter."), @return: True """ company = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.name + company_address = self.pool.get('res.company').browse(cr, uid, uid, context=context).street for att in self.browse(cr, uid, ids, context=context): - sign = att.sent_by_uid and att.sent_by_uid.signature or '' - sign = '
'.join(sign and sign.split('\n') or []) res_obj = att.ref if res_obj: - att = [] - att_mail = [] + att = {} + att_info = [] sub = res_obj.name other_invitation_ids = self.search(cr, uid, [('ref', '=', res_obj._name + ',' + str(res_obj.id))]) for att2 in self.browse(cr, uid, other_invitation_ids): - - att.append(((att2.user_id and att2.user_id.name) or \ - (att2.partner_id and att2.partner_id.name) or \ - att2.email)) - att_mail.append(att2.email) + att_info.append(att2.user_id and att2.user_id.name or att2.partner_id and att2.partner_id.name or att2.email) + att[att2.user_id and att2.user_id.name or att2.partner_id and att2.partner_id.name or att2.email] = att2.email + tz = context.get('tz', pytz.timezone('UTC')) allday = False date = fields.datetime.context_timestamp(cr, uid, datetime.strptime(res_obj.date, tools.DEFAULT_SERVER_DATETIME_FORMAT), context=context) @@ -472,32 +436,35 @@ property or property parameter."), time = date.strftime('%B-%d-%Y') + " at (" + date.strftime('%H-%M') + " To " + duration.strftime('%H-%M') + ")" else : time = date.strftime('%B-%d-%Y') + " at " + date.strftime('%H-%M') + " To \n" + date_deadline.strftime('%B-%d-%Y') + " at " + date_deadline.strftime('%H-%M') - attendees = '' - - for mail_to in att_mail: - mail_to = mail_to - attendees = mail_to + "," + attendees - footer = self.get_feedback(cr, uid, ids, context=context) - map_url = "http://maps.google.com/maps?oi=map&q=" - body_vals = {'name': res_obj.name, - 'usr': mail_to, + map_url = "http://maps.google.com/maps?oi=map&q=" +# a = """
""" +# b = """
""" + +# attendee= """(%s) You, (%s) - Organizer
%s
""" % (a, res_obj.organizer,) + footer = '' + attendee = '' + for user in att: + #attendee = b + attendee + user + #print "List of ATtendeedss ---------------------->", attendee + body_vals = {'user': user, + 'name': res_obj.name, 'responsible': res_obj.user_id and res_obj.user_id.name or 'OpenERP User', 'company': company, 'description': res_obj.description or '-', - 'attendees': res_obj.organizer + " - Organizer, " + attendees, + 'attendees': ', ' + .join(att_info), 'time': time, 'tz': tz, - 'location': res_obj.location or '-', - 'map' : map_url + '+' + str(res_obj.location or '-'), + 'location': res_obj.location or company_address, + 'map' : map_url + '+' + str(res_obj.location or company_address), 'organizer': res_obj.organizer, - 'url' : footer, - } + 'url' : footer, + } body_id = self.pool.get('email.template').search(cr, uid, [('subject', '=', 'Meeting Invitation')], context=context) body = self.pool.get('email.template').browse(cr, uid, body_id[0], context=context).body_html % body_vals - if mail_to and email_from: + if att[user] and email_from: ics_file = self.get_ics_file(cr, uid, res_obj, context=context) vals = {'email_from': email_from, - 'email_to': mail_to, + 'email_to': att[user], 'state': 'outgoing', 'subject': sub, 'body_html': body, diff --git a/addons/base_calendar/base_calendar_data.xml b/addons/base_calendar/base_calendar_data.xml index 4c207b3da10..771e2e071a8 100644 --- a/addons/base_calendar/base_calendar_data.xml +++ b/addons/base_calendar/base_calendar_data.xml @@ -149,58 +149,45 @@ %(name)s -
+
%(name)s
Hello %(usr)s ,
+ %(organizer)s invited you for the %(name)s meeting of %(company)s
+ + + + + + + + + + + + + + + + +
When :
%(time)s
%(tz)s
Where :
%(location)s
What :
%(description)s
Attendees:
%(attendees)s
Accept | Decline
Sent by %(responsible)s from %(company)s.View this meeting detail directly in OpenERP
- +
- - + - - - + + + +
+
%(name)s
Hello %(usr)s ,
- %(organizer)s invited you for the %(name)s meeting of %(company)s
Hello %(user)s,
+ %(organizer)s invited you for the %(name)s meeting of %(company)s.
- +
- - - + + - - - + + - - + + - - + +
When :
%(time)s
%(tz)s
When :
%(time)s (%(tz)s)
+
Where :
%(location)s
Where :
%(location)s (View Map)
What :
%(description)s
What :
%(description)s
Attendees:
%(attendees)s
Attendees:
You, %(organizer)s - Organizer
%(attendees)s
Accept | Decline
Sent by %(responsible)s from %(company)s.View this meeting detail directly in OpenERP
--
Sent by %(responsible)s from %(company)s.View this meeting detail directly in OpenERP
+ + + ]]>
From a42120b12d4555149c92eb0f0aefc91a48895179 Mon Sep 17 00:00:00 2001 From: "Randhir Mayatra (OpenERP)" Date: Thu, 30 May 2013 16:55:36 +0530 Subject: [PATCH 3/5] [IMP] improve code bzr revid: rma@tinyerp.com-20130530112536-ev91830ao6mepw4u --- addons/base_calendar/base_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index 5fe919e9f7a..da02fee6be6 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -451,7 +451,7 @@ property or property parameter."), 'responsible': res_obj.user_id and res_obj.user_id.name or 'OpenERP User', 'company': company, 'description': res_obj.description or '-', - 'attendees': ', ' + .join(att_info), + 'attendees': ', ' .join(att_info), 'time': time, 'tz': tz, 'location': res_obj.location or company_address, From 176a45d841fa13fc4b482b012e3fd088c6d91a40 Mon Sep 17 00:00:00 2001 From: "Randhir Mayatra (OpenERP)" Date: Fri, 31 May 2013 14:45:53 +0530 Subject: [PATCH 4/5] [IMP] add the controller bzr revid: rma@tinyerp.com-20130531091553-efsa8zzm2qfk3585 --- addons/base_calendar/__init__.py | 1 + addons/base_calendar/__openerp__.py | 3 ++ addons/base_calendar/base_calendar.py | 41 +++++++++++++------ addons/base_calendar/base_calendar_data.xml | 2 +- addons/base_calendar/service.py | 17 ++++++++ .../static/src/js/base_calendar.js | 6 +++ 6 files changed, 56 insertions(+), 14 deletions(-) create mode 100644 addons/base_calendar/service.py create mode 100644 addons/base_calendar/static/src/js/base_calendar.js diff --git a/addons/base_calendar/__init__.py b/addons/base_calendar/__init__.py index b6447567083..a736d491b0e 100644 --- a/addons/base_calendar/__init__.py +++ b/addons/base_calendar/__init__.py @@ -21,5 +21,6 @@ import base_calendar import crm_meeting +import service # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/base_calendar/__openerp__.py b/addons/base_calendar/__openerp__.py index 313ddb8453a..7d5b82a3cdf 100644 --- a/addons/base_calendar/__openerp__.py +++ b/addons/base_calendar/__openerp__.py @@ -47,6 +47,9 @@ If you need to manage your meetings, you should install the CRM module. 'base_calendar_data.xml', 'crm_meeting_data.xml', ], + 'js': [ + 'static/src/js/*.js' + ], 'test' : ['test/base_calendar_test.yml'], 'installable': True, 'application': True, diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index da02fee6be6..cfb4fe7ba21 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -31,7 +31,8 @@ import time from openerp import tools, SUPERUSER_ID import openerp.service.report - +from urllib import urlencode +from urlparse import urljoin months = { 1: "January", 2: "February", 3: "March", 4: "April", \ 5: "May", 6: "June", 7: "July", 8: "August", 9: "September", \ @@ -403,6 +404,25 @@ property or property parameter."), attendee_add.value = 'MAILTO:' + (attendee.email or '') res = cal.serialize() return res + def meeting_invitation(self, cr, uid, ids,context=None): + partner_obj = self.browse(cr,uid, ids,context=context) + for event_id in self.browse(cr, uid, ids, context): + event_id = event_id.ref.id + for partner in partner_obj: + if partner and partner.user_id: + related_user = partner.user_id + base_url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url') + query = {'db': cr.dbname} + fragment = { + 'login': related_user.login, + 'model': "crm.meeting", + 'view_type' : "form", + 'res_id': event_id, + } + url = urljoin(base_url, "?%s#%s" % (urlencode(query), urlencode(fragment))) + else : + url = "https://openerp.my.openerp.com/#" + return url def _send_mail(self, cr, uid, ids, mail_to, email_from=tools.config.get('email_from', False), context=None): """ @@ -411,7 +431,6 @@ property or property parameter."), @return: True """ company = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.name - company_address = self.pool.get('res.company').browse(cr, uid, uid, context=context).street for att in self.browse(cr, uid, ids, context=context): res_obj = att.ref if res_obj: @@ -436,16 +455,12 @@ property or property parameter."), time = date.strftime('%B-%d-%Y') + " at (" + date.strftime('%H-%M') + " To " + duration.strftime('%H-%M') + ")" else : time = date.strftime('%B-%d-%Y') + " at " + date.strftime('%H-%M') + " To \n" + date_deadline.strftime('%B-%d-%Y') + " at " + date_deadline.strftime('%H-%M') - map_url = "http://maps.google.com/maps?oi=map&q=" -# a = """
""" -# b = """
""" - -# attendee= """(%s) You, (%s) - Organizer
%s
""" % (a, res_obj.organizer,) - footer = '' - attendee = '' + footer = self.meeting_invitation(cr, uid, ids, context=context) + map = '' + if res_obj.location: + map_url = "http://maps.google.com/maps?oi=map&q=" + '+' + str(res_obj.location), + map = """ (View Map)""" % map_url for user in att: - #attendee = b + attendee + user - #print "List of ATtendeedss ---------------------->", attendee body_vals = {'user': user, 'name': res_obj.name, 'responsible': res_obj.user_id and res_obj.user_id.name or 'OpenERP User', @@ -454,8 +469,8 @@ property or property parameter."), 'attendees': ', ' .join(att_info), 'time': time, 'tz': tz, - 'location': res_obj.location or company_address, - 'map' : map_url + '+' + str(res_obj.location or company_address), + 'location': res_obj.location or '-', + 'map' : map or '', 'organizer': res_obj.organizer, 'url' : footer, } diff --git a/addons/base_calendar/base_calendar_data.xml b/addons/base_calendar/base_calendar_data.xml index 771e2e071a8..80ec77ba6e0 100644 --- a/addons/base_calendar/base_calendar_data.xml +++ b/addons/base_calendar/base_calendar_data.xml @@ -167,7 +167,7 @@
Where :
-
%(location)s (View Map)
+
%(location)s %(map)s
What :
diff --git a/addons/base_calendar/service.py b/addons/base_calendar/service.py new file mode 100644 index 00000000000..0d6686f1f47 --- /dev/null +++ b/addons/base_calendar/service.py @@ -0,0 +1,17 @@ +import simplejson +import openerp.addons.web.http as oeweb +import openerp.addons.web.controllers.main as webmain + +class crm_meetting_importstatus(oeweb.Controller): + _cp_path = '/meeting' + @oeweb.httprequest + def meeting_invitation(self, req, dbname='test',res_id,uid): + url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url') + safe_url = urllib.quote_plus(url,debname,res_id,uid,':/?&;=') + + return webmain.html_template % { + 'js': "\n ".join('' % i for i in webmain.manifest_list(req, 'js',db= db)), + 'css': "\n ".join('' % i for i in webmain.manifest_list(req, 'css', db=db)), + 'modules': simplejson.dumps(webmain.module_boot(req, db)), + 'init': 'var wc = new s.web.WebClient();wc.appendTo($(document.body)); s.base_calendar.meeting_invitation();' + } diff --git a/addons/base_calendar/static/src/js/base_calendar.js b/addons/base_calendar/static/src/js/base_calendar.js new file mode 100644 index 00000000000..0c7642bdf0b --- /dev/null +++ b/addons/base_calendar/static/src/js/base_calendar.js @@ -0,0 +1,6 @@ +openerp.base_calendar = function(openerp) { + + openerp.base_calendar.meeting_invitation = function(){ + console.log("daaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); + } +}; From 5cf8cef63d1450aaf3bb6b65f5d020409a247290 Mon Sep 17 00:00:00 2001 From: "Randhir Mayatra (OpenERP)" Date: Fri, 31 May 2013 16:46:18 +0530 Subject: [PATCH 5/5] [IMP] remove extra code bzr revid: rma@tinyerp.com-20130531111618-d6y2o446c6ad1fuf --- addons/base_calendar/service.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/base_calendar/service.py b/addons/base_calendar/service.py index 0d6686f1f47..0d781ddbe0d 100644 --- a/addons/base_calendar/service.py +++ b/addons/base_calendar/service.py @@ -5,10 +5,7 @@ import openerp.addons.web.controllers.main as webmain class crm_meetting_importstatus(oeweb.Controller): _cp_path = '/meeting' @oeweb.httprequest - def meeting_invitation(self, req, dbname='test',res_id,uid): - url = self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url') - safe_url = urllib.quote_plus(url,debname,res_id,uid,':/?&;=') - + def meeting_invitation(self, req, db='may_29'): return webmain.html_template % { 'js': "\n ".join('' % i for i in webmain.manifest_list(req, 'js',db= db)), 'css': "\n ".join('' % i for i in webmain.manifest_list(req, 'css', db=db)),