Trunk/7.0 Timesheet view timezone problem

Bug #1102304 reported by Mihalache Ciprian
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 3

Bug Description

Hello. My server timezone is +2.

I understand that openerp uses default timezone. When I sign in and sign out everything is right. But on timesheet total attendance is wrong calculated. I attached a printscreen.

Related branches

Revision history for this message
Mihalache Ciprian (ciprian-mihalache) wrote :
Farid Ghanchi (gfarid)
Changed in openerp-web:
status: New → Confirmed
Amit Parik (amit-parik)
affects: openerp-web → openerp-addons
Changed in openerp-addons:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Medium
affects: openerp-addons → openobject-addons
summary: - v7 Timesheet view timezone problem
+ Trunk/7.0 Timesheet view timezone problem
Changed in openobject-addons:
assignee: OpenERP R&D Web Team (openerp-dev-web) → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Folks,

I have Investigated this Issue. It's hard to reproduce but not Impossible.... ;-)

Step for reproduce :

step-1 : Install Hr timesheet
step-2 : go to "HR" >> Time tracking >> My current timesheet
step-3 : "Sign in" using by Icon @ "At top right side (near message Icon)" + [Add the summary "3 hour" before sign in @ summary tab.]
step-4 : After some times "sign Out" using by Icon. and check the total attendance.
step-5 : Then update the summary "3 hours" to "1 hours". and "Sign in" again.
step-6 : Than check the total attendance in timesheet form view as same as attached image".(Count time is wrong)

Thanks!

Revision history for this message
Mahendra Barad(OpenERP) (mba-openerp) wrote :

Hello,

It has been fixed into https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1102304-mahendra
branch with following

Revision ID: <email address hidden>
Revision No:8659

it will be merged soon in trunk.

Thanks

Changed in openobject-addons:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

Isn't this bug report a duplicate of lp:1178623 ?

tags: added: hr sheet timesheet
Revision history for this message
Andreas Brueckl (andreas-brueckl) wrote :

Hello,

this patch only fixes half of the problem.

If there is a sign-out on the next day, then the timezone-difference has to be added (like it is subtracted in the patch here).
This has to be done in the "ELSE SUM(total_attendance)" part.

This must only be done when the first attendance-entry of the day is a "sign-out".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.