From f8df38e4e31ac31bea15534f5b71c602f402a3ac Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Wed, 19 Jan 2011 00:55:46 +0100 Subject: [PATCH] [FIX] Fixed problem with rrule. bzr revid: nicolas.vanhoren@openerp.com-20110118235546-wwagvhi2el8qdtut --- addons/base_calendar/base_calendar.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index 850691d329c..9af977f8b8e 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -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)):