[FIX] base_calender : Fixes the infinite created meeting problem

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

bzr revid: jir@jir-desktop-20120323104955-bmnp2j4b9xiuf70w
This commit is contained in:
jir
2012-03-23 16:19:55 +05:30
parent b917267f2d
commit 8c23e9f488
+2 -2
View File
@@ -1002,8 +1002,8 @@ class calendar_event(osv.osv):
event = datas['id']
if datas.get('interval', 0) < 0:
raise osv.except_osv(_('Warning!'), _('Interval cannot be negative'))
if datas.get('count', 0) < 0:
raise osv.except_osv(_('Warning!'), _('Count cannot be negative'))
if datas.get('count', 0) <= 0:
raise osv.except_osv(_('Warning!'), _('Count cannot be negative or 0'))
if datas['recurrency']:
result[event] = self.compute_rule_string(datas)
else: