[IMP] Improved code in hr_timesheet_sheet to remover server log on installation.

bzr revid: jra@tinyerp.com-20120904105000-685rjpi2cny0941e
This commit is contained in:
Jiten (OpenERP)
2012-09-04 16:20:00 +05:30
@@ -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']) \