[MOD/IMP] hr_timesheet_sheet : usability improvement
authorDBR (OpenERP) <dbr@tinyerp.com>
Wed, 29 Sep 2010 11:49:56 +0000 (17:19 +0530)
committerDBR (OpenERP) <dbr@tinyerp.com>
Wed, 29 Sep 2010 11:49:56 +0000 (17:19 +0530)
bzr revid: dbr@tinyerp.com-20100929114956-29nacii3mqgbb46i

addons/hr_attendance/hr_attendance.py

index 6afd783..969637f 100644 (file)
@@ -150,7 +150,7 @@ class hr_employee(osv.osv):
             res = {'action': type, 'employee_id': emp['id']}
             if dt:
                 res['name'] = dt
-            id = obj_attendance.create(cr, uid, res, context=context)
+        id = obj_attendance.create(cr, uid, res, context=context)
 
         if type != 'action':
             return id