[FIX]: base_calendar: Fixed sql query

bzr revid: rpa@tinyerp.com-20101004130204-kbj85avouuq4d0oc
This commit is contained in:
rpa (Open ERP)
2010-10-04 18:32:04 +05:30
parent d910cbd863
commit 43642c4ca6
+1 -1
View File
@@ -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