diff options
| author | Bhumi Thakkar (Open ERP) <bth@tinyerp.com> | 2012-08-31 14:44:14 +0530 |
|---|---|---|
| committer | Bhumi Thakkar (Open ERP) <bth@tinyerp.com> | 2012-08-31 14:44:14 +0530 |
| commit | 2f93587bf5b4df34df4cd4e0ed2d3b028caf0f20 (patch) | |
| tree | 7c773b71f6e1833c103718c3338f9b96abd0a8c0 | |
| parent | 4639967d0ceb5db0ba1a12d89c7c46d1db012f63 (diff) | |
[FIX] if ids not list then convert into list.
bzr revid: bth@tinyerp.com-20120831091414-u8xdai5zi5lamh65
| -rw-r--r-- | addons/event/event.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/event/event.py b/addons/event/event.py index 7f0c77661e4..5d95132ebd8 100644 --- a/addons/event/event.py +++ b/addons/event/event.py @@ -54,6 +54,8 @@ class event_event(osv.osv): def name_get(self, cr, uid, ids, context=None): if not ids: return [] + if not isinstance(ids, list): + ids = [ids] res = [] for record in self.browse(cr, uid, ids, context=context): date = record.date_begin.split(" ")[0] |
