[FIX] base_calendar: backport of the fix for edit_all in crm_meeting

bzr revid: qdp-launchpad@tinyerp.com-20110120183211-vbvmnlzg52blrqxo
This commit is contained in:
qdp-launchpad@tinyerp.com
2011-01-20 19:32:11 +01:00
parent de951caeb9
commit f6487d6b46
+4 -1
View File
@@ -1198,7 +1198,7 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
'active': 1,
'user_id': lambda self, cr, uid, ctx: uid,
'organizer': default_organizer,
'edit_all' : True,
'edit_all' : False,
}
def onchange_edit_all(self, cr, uid, ids, rrule_type,edit_all, context=None):
@@ -1484,6 +1484,9 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
context=context)
vals.update(updated_vals.get('value', {}))
if not 'edit_all' in vals:
vals['edit_all'] = False
if new_ids:
res = super(calendar_event, self).write(cr, uid, new_ids, vals, context=context)