[FIX] Fixed problem with yaml tests in base_calendar.

bzr revid: nicolas.vanhoren@openerp.com-20110119124622-6y2vkh4n4hjff2iv
This commit is contained in:
niv-openerp
2011-01-19 13:46:22 +01:00
parent cf561091c8
commit 33ca516cc1
+1 -1
View File
@@ -1417,7 +1417,7 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
@return: True
"""
#removing useless value
old_vals = self.read(cr, uid, ids[0], ['rrule'], context)
old_vals = self.read(cr, uid, ids[0] if type(ids) == list else ids, ['rrule'], context)
if not old_vals:
old_vals = {}
if not 'rrule' in old_vals: