diff options
| author | Richard Mathot <rim@odoo.com> | 2016-09-27 18:50:49 +0200 |
|---|---|---|
| committer | Jérome Maes <jem@openerp.com> | 2016-09-28 13:43:20 +0200 |
| commit | 2bb37b5d1e41d9dd21ec59b8913b7ec366f0bc29 (patch) | |
| tree | 2bb0fb1cb7b6d51df227166f0e359733e64f861a /addons/web_editor | |
| parent | 4dd31f645e00fbb897bfcd057705383bbfd3c8a4 (diff) | |
[FIX] calendar: don't crash on missing optional dependency
For historical reasons, `vobject`* Python library is not mandatory in
Odoo.
Since refactoring 6af6148a243374b7004aae719b9855df9393913e,
get_ics_file() returns now a dictionary whose keys are calendar.event
ids and values are the corresponding ics file.
If `vobject` is not available, it returns an empty dictionary that
could cause calendar.py to crash because it always expects to find the
event's key.
Before this refactoring, this method was called and architectured in a
different manner, so no crash was happening.
This commit prevents the crash if `vobject` is not installed and logs a
warning.
*vobject allows to generate iCalendar files
Diffstat (limited to 'addons/web_editor')
0 files changed, 0 insertions, 0 deletions
