[IMP] If ids are int or long then convert into list.

bzr revid: bth@tinyerp.com-20120904062302-mk42s7vhqz2n6l8n
This commit is contained in:
Bhumi Thakkar (Open ERP)
2012-09-04 11:53:02 +05:30
parent ffc772edfd
commit 653c146ace
@@ -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']) \