[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:
parent
fae903c3ee
commit
99c9ce6d5c
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue