Odoo Help


Why sign-out attaches to wrong day's timesheet?

Matt Taylor
on 2/12/13, 11:44 PM 1,219 views

My time zone is set to -7. I use daily timesheets. When I sign-out after 16:59 local time (23:59 UTC), the sign-out action is associated with tomorrow's timesheet. Is there a workaround?

Mario Arias Badila
On 2/13/13, 1:25 AM

This should be fixed in latest revisions for v7...


If not, check code that assigns date at sign-out, it should use context_today()...

I installed the latest nightly build of 7.0 and still have the same problem. The bug you reference here seems unrelated. I searched for other bug reports, and found bugs.launchpad.net/openobject-addons/+bug/943091

Matt Taylor
on 2/15/13, 11:02 AM

I don't have attendance configured, so could not debug, but just did a quick check on the code and it is full of time.strftime('%Y-%m-%d') stuff, that should be replaced by context_today() calls.... (you can check code in modules hr_timesheet and hr_timesheet_sheet...

Mario Arias Badila
on 2/15/13, 11:53 AM

So, should I submit another bug report? It seems this should already be a known issue.

Matt Taylor
on 2/15/13, 1:57 PM

I submitted another bug report for this Matt. It has been confirmed but only given low priority, which is a shame. Mario, can you give any more hints on what code changes would fix this bug. I've tried pulling code from the hr_timesheet and inserting it int the hr_attendance.py but I just cause errors (don't really know what I'm doing...).

Bill Ennals
on 5/21/13, 4:26 AM

all of you! this is the bug report mentioned (https://bugs.launchpad.net/openobject-addons/+bug/1179893) Please login to launchpad and comment your problems there. This hopefully will raise attention in the right places to have this fixed

on 10/8/13, 11:15 AM

I submitted a patch for bug 1179893 that fixes more than the camp-to-camp branch (proposed for merging into v7). My patch is for trunk. Hopefully someone will get these changes applied.

Matt Taylor
on 12/31/13, 1:01 AM
Matt Taylor
On 12/31/13, 4:25 PM

Bug 1179893 seems to best describe the problems (https://bugs.launchpad.net/openobject-addons/+bug/1179893). There is a branch there for v7 that fixes one of the problems, but there are a few other fixes needed. I submitted a patch that I believe fixes all of the timezone problems for trunk. It may need some refining.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/12/13, 11:44 PM
Seen: 1219 times
Last updated: 3/16/15, 8:10 AM