Merge lp:~openerp-dev/openobject-addons/6.0-opw-595375-dhs into lp:openobject-addons/6.0

Proposed by Dhruti Shastri(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-595375-dhs
Merge into: lp:openobject-addons/6.0
Diff against target: 25 lines (+2/-2)
2 files modified
hr_timesheet/report/user_timesheet.py (+1/-1)
hr_timesheet/report/users_timesheet.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-595375-dhs
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+175239@code.launchpad.net

Description of the change

Create an Employee timesheet with 3 hours. print report Employee Timesheet.

It will show you 24 hours. Quntity we add in Timesheet Line is multiplied with UoM.

To post a comment you must log in.

Unmerged revisions

5490. By Dhruti Shastri(OpenERP)

[hr_timesheet] : timesheet report diplays wrong entries

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hr_timesheet/report/user_timesheet.py'
2--- hr_timesheet/report/user_timesheet.py 2011-02-07 11:38:37 +0000
3+++ hr_timesheet/report/user_timesheet.py 2013-07-17 09:55:58 +0000
4@@ -67,7 +67,7 @@
5 if user_id:
6 # Computing the attendence by analytical account
7 cr.execute(
8- "select line.date, (unit_amount * unit.factor) as amount, account_id, account.name "\
9+ "select line.date, (unit_amount / unit.factor) as amount, account_id, account.name "\
10 "from account_analytic_line as line, hr_analytic_timesheet as hr, "\
11 "account_analytic_account as account, product_uom as unit "\
12 "where hr.line_id=line.id and line.account_id=account.id "\
13
14=== modified file 'hr_timesheet/report/users_timesheet.py'
15--- hr_timesheet/report/users_timesheet.py 2011-01-17 11:35:21 +0000
16+++ hr_timesheet/report/users_timesheet.py 2013-07-17 09:55:58 +0000
17@@ -37,7 +37,7 @@
18 def emp_create_xml(cr, id, som, eom, emp):
19 # Computing the attendence by analytical account
20 cr.execute(
21- "select line.date, (unit_amount * unit.factor) as amount "\
22+ "select line.date, (unit_amount / unit.factor) as amount "\
23 "from account_analytic_line as line, hr_analytic_timesheet as hr, "\
24 "product_uom as unit "\
25 "where hr.line_id=line.id "\