[FIX] Modified base_calendar to make test in project pass.
bzr revid: nicolas.vanhoren@openerp.com-20110119181930-hcafgtyzp4x1v1xl
This commit is contained in:
parent
90fe206e80
commit
d2f4923d3e
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in New Issue