From 653c146ace702f77a4eb5f202b4b747f09068723 Mon Sep 17 00:00:00 2001 From: "Bhumi Thakkar (Open ERP)" Date: Tue, 4 Sep 2012 11:53:02 +0530 Subject: [PATCH] [IMP] If ids are int or long then convert into list. bzr revid: bth@tinyerp.com-20120904062302-mk42s7vhqz2n6l8n --- addons/hr_timesheet_sheet/hr_timesheet_sheet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py index ca28b5bdb28..39a0d9aed0c 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py @@ -442,6 +442,8 @@ class hr_timesheet_sheet(osv.osv): return True def name_get(self, cr, uid, ids, context=None): + if isinstance(ids, (int, long)): + ids = [ids] if not len(ids): return [] return [(r['id'], r['date_from'] + ' - ' + r['date_to']) \