From 9d24c3cdf4167fd932600d6fd4bcb01090dfa2fb Mon Sep 17 00:00:00 2001 From: Thibault Francois Date: Thu, 20 Jan 2011 12:02:25 +0100 Subject: [PATCH] [FIX] unlink call get_all error bzr revid: tfr@openerp.com-20110120110225-lvul0x0gw3pnu4rp --- addons/base_calendar/base_calendar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index a1e4293eaf9..93c92acf342 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -1532,6 +1532,8 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\ for base_calendar_id, real_id in select: #REVET: Revision ID: olt@tinyerp.com-20100924131709-cqsd1ut234ni6txn res = super(calendar_event, self).read(cr, uid, real_id, fields=fields, context=context, load=load) + if not res : + res = {} ls = base_calendar_id2real_id(base_calendar_id, with_date=res and res.get('duration', 0) or 0) if not isinstance(ls, (str, int, long)) and len(ls) >= 2: res['date'] = ls[1]