[MERGE] backport of trunk fixes for base_calendar, users_ldap
bzr revid: odo@openerp.com-20110120125304-dwsob0j88q27i9hq
This commit is contained in:
@@ -1416,6 +1416,16 @@ 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
|
||||
"""
|
||||
#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 = {}
|
||||
if not 'rrule' in old_vals:
|
||||
old_vals["rrule"] = ""
|
||||
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)):
|
||||
|
||||
@@ -40,7 +40,7 @@ This module only works with Unix/Linux
|
||||
"active": False,
|
||||
"installable": True,
|
||||
"certificate" : "001141446349334700221",
|
||||
"dependencies" : {
|
||||
"external_dependencies" : {
|
||||
'python' : ['ldap'],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user