[FIX] Modified base_calendar to make test in project pass.

bzr revid: nicolas.vanhoren@openerp.com-20110119181930-hcafgtyzp4x1v1xl
This commit is contained in:
niv-openerp 2011-01-19 19:19:30 +01:00
parent 90fe206e80
commit d2f4923d3e
1 changed files with 8 additions and 7 deletions

View File

@ -1417,6 +1417,7 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
@return: True
"""
#removing useless value
if type(ids) == int or (type(ids) == list and len(ids) > 0):
old_vals = self.read(cr, uid, ids[0] if type(ids) == list else ids, ['rrule'], context)
if not old_vals:
old_vals = {}