[IMP]: base_calendar: When we clear rrule, it should clear exrule

bzr revid: rpa@tinyerp.com-20100630102630-m326atzgci08kioz
This commit is contained in:
rpa (Open ERP)
2010-06-30 15:56:30 +05:30
parent b56f0a0fdd
commit 3eaf4bb536
+1
View File
@@ -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')