[FIX] hr_timesheet: fixed employee and employees timesheet report, shows correct values(without using unit_factor)

lp bug: https://launchpad.net/bugs/788297 fixed

bzr revid: mtr@mtr-20110613062321-z23jvc1z5my3q08b
This commit is contained in:
mtr 2011-06-13 11:53:21 +05:30
parent d9527bc6e4
commit b4945ac8ff
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ class report_custom(report_rml):
if user_id:
# Computing the attendence by analytical account
cr.execute(
"select line.date, (unit_amount * unit.factor) as amount, account_id, account.name "\
"select line.date, (unit_amount) as amount, account_id, account.name "\
"from account_analytic_line as line, hr_analytic_timesheet as hr, "\
"account_analytic_account as account, product_uom as unit "\
"where hr.line_id=line.id and line.account_id=account.id "\

View File

@ -37,7 +37,7 @@ def lengthmonth(year, month):
def emp_create_xml(cr, id, som, eom, emp):
# Computing the attendence by analytical account
cr.execute(
"select line.date, (unit_amount * unit.factor) as amount "\
"select line.date, (unit_amount) as amount "\
"from account_analytic_line as line, hr_analytic_timesheet as hr, "\
"product_uom as unit "\
"where hr.line_id=line.id "\