Odoo Help


Problem with date fields with a custom timezone

Grover Menacho
on 1/16/14, 12:12 PM 1,572 views

I've a question about dates on the system because I've some issues with it.

My problem is the following:

My timezone is: GMT(-4)

I don't have issues with datetimes because my users have GMT(-4) too, but my problem is with dates, for example, if I'm creating a payment through invoice date field is automatically filled but looking through the code default date is:

'date': lambda *a: time.strftime('%Y-%m-%d'),

so it's ok, but problem happens when someone creates a payment after 20:00 GMT(-4), because it's filled with the date of the next date.

Is there something I can do about this? Payments should not have other date.


Grover Menacho

In my case also faced the same issue after changing default date value into 'date' : fields.date.context_today issues fixed.

on 1/17/14, 1:17 AM

Ok, I'll try, but this means that I've to do this with every date that is by default on the system. =S

GH Mediacloud, Grover Menacho
on 1/20/14, 8:54 AM

Yes in default openerp sale order same code used fields.date.context_today

on 1/20/14, 9:01 AM

Thanks for your answer, it seems that there is no other way,

GH Mediacloud, Grover Menacho
on 2/3/14, 10:38 AM

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

0 follower(s)


Asked: 1/16/14, 12:12 PM
Seen: 1572 times
Last updated: 3/16/15, 8:10 AM