[hr_timesheet] Employee timesheet reports confuse employee id and user id

Bug #669533 reported by James Jesudason
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

bzr revno: 4437

There are errors in the Employees Timesheet report and the Employee Timesheet report which prevent the reports from generating the correct information.

The Employees Timesheet incorrectly passes the employee ID into the 'emp_create_xml' method so it is generating the timesheet for the wrong user. It should pass in the user id.
Steps to reproduce: use a database with multiple users and employees. Report on users that have their hr.employee ID different to their res.user ID.

The Employee Timesheet ignores the employee_id parameter and incorrectly uses the logged-on user's id to generate the report. So the generated report will be incorrect if the user chooses a different employee in the wizard.
Steps to reproduce: use a database with multiple users and employees. Run the report for the logged on user and then re-run for another employee. You'll see that the reports are identical, even though is different user was selected.

A patch is attached to fix both reports.

Related branches

Revision history for this message
James Jesudason (jamesj) wrote :
Revision history for this message
Azazahmed Saiyed (OpenERP) (saz-openerp) wrote :

In hr_timesheet report wizard, we are getting the employee as an input for printing the report while report prints according to user logged in to the system not employee.

Would you please check it and here patch is also attached for fixing the problem in both reports of hr_timesheet.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello James Jesudason,

Its fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/pso-dev-addons3

will be merged with Addons3 soon.

Thanks for your contribution.

Changed in openobject-addons:
status: In Progress → 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.