From f6487d6b46fe4c0ea20a135df7a2d586a7927954 Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Thu, 20 Jan 2011 19:32:11 +0100 Subject: [PATCH] [FIX] base_calendar: backport of the fix for edit_all in crm_meeting bzr revid: qdp-launchpad@tinyerp.com-20110120183211-vbvmnlzg52blrqxo --- addons/base_calendar/base_calendar.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index 2910f81e590..e5cff943f2f 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -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)