[IMP]: base_calendar: When we clear rrule, it should clear exrule
bzr revid: rpa@tinyerp.com-20100630102630-m326atzgci08kioz
This commit is contained in:
@@ -992,6 +992,7 @@ class calendar_event(osv.osv):
|
||||
if datas.get('rrule_type'):
|
||||
if datas.get('rrule_type') == 'none':
|
||||
result[event] = False
|
||||
cr.execute("UPDATE %s set exrule=Null where id=%s" % (self._table, event))
|
||||
elif datas.get('rrule_type') == 'custom':
|
||||
if datas.get('interval', 0) < 0:
|
||||
raise osv.except_osv('Warning!', 'Interval can not be Negative')
|
||||
|
||||
Reference in New Issue
Block a user