Rifakat (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-54666-rha into 
lp:openobject-addons/6.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-54666-rha/+merge/88366

Hello,

Fixed the time tracking issue while encoding entry from wizard 'Sign in/ Sign 
out by project'.
For example, if minimum amount is 1 and it took hour difference as 1hours then 
it posts working hours entry of 2hours.

Let me know if any correction needed.

Thanks,
Rifakat
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-54666-rha/+merge/88366
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-54666-rha.
=== modified file 'hr_timesheet/wizard/hr_timesheet_sign_in_out.py'
--- hr_timesheet/wizard/hr_timesheet_sign_in_out.py	2011-08-11 11:26:21 +0000
+++ hr_timesheet/wizard/hr_timesheet_sign_in_out.py	2012-01-12 13:13:27 +0000
@@ -69,8 +69,8 @@
         hour = (time.mktime(time.strptime(data['date'] or time.strftime('%Y-%m-%d %H:%M:%S'), '%Y-%m-%d %H:%M:%S')) -
             time.mktime(time.strptime(data['date_start'], '%Y-%m-%d %H:%M:%S'))) / 3600.0
         minimum = data['analytic_amount']
-        if minimum:
-            hour = round(round((hour + minimum / 2) / minimum) * minimum, 2)
+        if minimum and hour < minimum:
+            hour = minimum
         res = timesheet_obj.default_get(cr, uid, ['product_id','product_uom_id'], context=context)
 
         if not res['product_uom_id']:

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to