[FIX] base_calendar,caldav : SQL queries Corrected

lp bug: https://launchpad.net/bugs/654480 fixed

bzr revid: ach@tinyerp.com-20101004122435-vsisrowq9fkk6zv6
This commit is contained in:
Omar(Pexego),Anup(OpenERP) 2010-10-04 17:54:35 +05:30 committed by Anup (OpenERP)
parent fae903c3ee
commit 99c9ce6d5c
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -716,7 +716,7 @@ class basic_calendar_line(osv.osv):
"""
cr.execute("SELECT COUNT(id) FROM basic_calendar_lines \
WHERE name='%s' AND calendar_id=%s",
WHERE name=%s AND calendar_id=%s",
(vals.get('name'), vals.get('calendar_id')))
res = cr.fetchone()
if res: