← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 669533] Re: [hr_timesheet] Employee timesheet reports confuse employee id and user id

 

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
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

-- 
[hr_timesheet] Employee timesheet reports confuse employee id and user id
https://bugs.launchpad.net/bugs/669533
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Confirmed

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.





References