[FIX]: base_calendar: Fixed some problems for attendee invitation

bzr revid: rpa@tinyerp.com-20100325115354-x8lfkcchw9k9zg3t
This commit is contained in:
rpa (Open ERP)
2010-03-25 17:23:54 +05:30
parent 7f9d81e3f0
commit 58fddb6132
2 changed files with 3 additions and 4 deletions
+2 -4
View File
@@ -404,11 +404,9 @@ request was delegated to"),
sign = att.sent_by_uid and att.sent_by_uid.signature or ''
sign = '<br>'.join(sign and sign.split('\n') or [])
res_obj = att.ref
if res_obj and len(res_obj):
res_obj = res_obj[0]
sub = '[%s Invitation][%d] %s' % (company, att.id, res_obj.name)
att_infos = []
other_invitaion_ids = self.search(cr, uid, [('ref', '=', att.ref)])
other_invitaion_ids = self.search(cr, uid, [('ref','=', att.ref._name + ',' + str(att.ref.id))])
for att2 in self.browse(cr, uid, other_invitaion_ids):
att_infos.append(((att2.user_id and att2.user_id.name) or \
(att2.partner_id and att2.partner_id.name) or \
@@ -869,7 +867,7 @@ rule or repeating pattern for anexception to a recurrence set"),
defaults.update({'table': self._table})
qry = "UPDATE %(table)s set name = '%(name)s', \
date = '% (date)s', date_deadline = '% (date_deadline)s'"
date = '%(date)s', date_deadline = '%(date_deadline)s'"
if defaults.get('alarm_id'):
qry += ", alarm_id = %(alarm_id)s"
if defaults.get('location'):
@@ -21,6 +21,7 @@
from base_calendar import base_calendar
from osv import fields, osv
import tools
class base_calendar_invite_attendee(osv.osv_memory):
"""