hr_attendance: You cannot sign out if you change task after sign in

Bug #493369 reported by Jordi Esteve (www.zikzakmedia.com)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Ravi Gadhia (OpenERP)

Bug Description

hr_attendance: You cannot sign out if you change task after sign in (OpenERP 5.0 last stable).

If you do these sequence of actions:

1) Sign in (Menu HR - Attendances - Sign in / Sign out or Sign in / Sign out by project)
2) Change your work (Menu HR - Attendances - Sign in / Sign out by project, fill analytic account and work description and press Change work button
3) Now you are not be able to sign out

You must go to menu Attendances / Attendances and delete the last one with field Action='Action' to be able to sign out.

This can be fixed if lines 117 and 140 in hr_attendance/wizard/sign_in_out.py are changed from:

    att_id = service.execute(cr.dbname, uid, 'hr.attendance', 'search', [('employee_id', '=', emp_id)], limit=1, order='name desc')

to

    att_id = service.execute(cr.dbname, uid, 'hr.attendance', 'search', [('employee_id', '=', emp_id), ('action', '!=', 'action')], limit=1, order='name desc')

Related branches

Changed in openobject-addons:
assignee: nobody → rga(Open ERP) (rga-openerp)
Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thank you for the reporting.

It has been fixed by revision 2493 <email address hidden>.

Changed in openobject-addons:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.