[FIX] Fixed problem with rrule.

bzr revid: nicolas.vanhoren@openerp.com-20110118235546-wwagvhi2el8qdtut
This commit is contained in:
niv-openerp
2011-01-19 00:55:46 +01:00
parent 12e4cdf71b
commit f8df38e4e3
+4
View File
@@ -1415,6 +1415,10 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
@param context: A standard dictionary for contextual values
@return: True
"""
old_vals = self.read(cr, uid, ids, 'rrule', context)[0]
if 'rrule' in vals and not vals['rrule'] and not old_vals['rrule']:
del vals['rrule']
if context is None:
context = {}
if isinstance(ids, (str, int, long)):