Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Do workflows hinder TZ calculations?

by
Projetgrup, Levent Karakaş
- 07/11/2015 05:04:55
Since you don't have user context in workflows, you don't have timezone and language setting. Not only tz but also translation is not possible as well. 

2015-07-11 1:56 GMT+03:00 Manuel Vázquez <manuel@merchise.org>:
Well, I generalize my question to where does Odoo does the TZ -->UTC and
UTC --> TZ datetime conversions.

I experimented by doing a::

    search(cr, uid, [('datetime_col', '>=', '2015-07-01 00:00:00')],
context={'tz': 'Europe/Paris'})

And trace the query... It leaves the datetime representation
untouched... no matter of 'tz' param.

I also did a .create()... and the datetime vals where passed as-is.

So, it seems that TZ --> UTC convertion is been dealt with outside the
ORM.  Where?  At the UI?

Best regards,
Manuel.

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe