projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
480e6ce
)
[FIX] remove result if there is not
author
Thibault Francois
<tfr@openerp.com>
Thu, 20 Jan 2011 15:14:57 +0000
(16:14 +0100)
committer
Thibault Francois
<tfr@openerp.com>
Thu, 20 Jan 2011 15:14:57 +0000
(16:14 +0100)
bzr revid: tfr@openerp.com-
20110120151457
-mkw07qq7ckx7qfqw
addons/base_calendar/base_calendar.py
patch
|
blob
|
history
diff --git
a/addons/base_calendar/base_calendar.py
b/addons/base_calendar/base_calendar.py
index
1dac8de
..
297003e
100644
(file)
--- a/
addons/base_calendar/base_calendar.py
+++ b/
addons/base_calendar/base_calendar.py
@@
-1545,7
+1545,7
@@
e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
#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 = {}
+ continue
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]