[FIX] hr_timesheet_sheet : Rounding value problem in float_time widget
authorACH(OpenERP) <>
Fri, 11 Sep 2009 14:22:57 +0000 (19:52 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Fri, 11 Sep 2009 14:22:57 +0000 (19:52 +0530)
lp bug: https://launchpad.net/bugs/424177 fixed

bzr revid: jvo@tinyerp.com-20090911142257-s8prbnz3lgymqsvu

addons/hr_timesheet_sheet/hr_timesheet_sheet.py

index 9d8bdb1..3fbf615 100644 (file)
@@ -576,7 +576,7 @@ class hr_timesheet_sheet_sheet_day(osv.osv):
                 sheet_id,
                 total_timesheet,
                 total_attendance,
-                (total_attendance - total_timesheet) AS total_difference
+                round(cast((total_attendance - total_timesheet) as Numeric),2) AS total_difference
             FROM
                 ((
                     SELECT