diff options
| author | rpa (Open ERP) <rpa@tinyerp.com> | 2010-10-04 14:32:10 +0530 |
|---|---|---|
| committer | rpa (Open ERP) <rpa@tinyerp.com> | 2010-10-04 14:32:10 +0530 |
| commit | d5b94c8d65264b4aa437c2dc011ee8a6bae2ced1 (patch) | |
| tree | 8c28a06d6cfec82ab4bf92d650b90a20c2ac22b4 | |
| parent | e345b7702f2aa6d5c818a345180a12e646493b26 (diff) | |
[FIX]: base_calendars: Fixed queries
bzr revid: rpa@tinyerp.com-20101004090210-5ulpavop0kavjwfl
| -rw-r--r-- | addons/base_calendar/base_calendar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index b71e2daa447..49393f76349 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -724,7 +724,7 @@ true, it will allow you to hide the event alarm information without removing it. if alarm_ids: alarm_obj.unlink(cr, uid, alarm_ids) cr.execute('Update %s set base_calendar_alarm_id=NULL, alarm_id=NULL\ - where id=%%d' % model_obj._table,(datas.id,)) + where id=%%s' % model_obj._table,(datas.id,)) return True res_alarm() @@ -978,7 +978,7 @@ class calendar_event(osv.osv): if not context: context = {} for event_id in ids: - cr.execute('select id from %s where recurrent_uid=%s' % (self._table, event_id)) + cr.execute('select id from %s where recurrent_uid=%s' , (self._table, event_id)) r_ids = map(lambda x: x[0], cr.fetchall()) self.unlink(cr, uid, r_ids, context=context) return True |
