Odoo Help

Welcome!

This community 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.

0

All delivery orders created time is 19:00:00 in v7?

By
Sean Samborski
on 7/23/14, 7:18 AM 667 views

No matter the timezone under user settings, or time on the server, or current UTC time, or anything, every single delivery order has a created date of the previous day at 19:00:00.

 

Example, if today if current time is 07/23/2014 06:16:00 and I create a delivery order, the created date will be 07/22/2014 19:00:00. This makes every kind of tracking wrong. What is the cause and solution of this issue?

0

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 7/25/14, 6:30 AM

Probable cause of this is the mismatch in type of field and the data that is written to that field

in stock_move class/object you have field 'date':fields.datetime(....
and in method wich is run on validating delivery : create_chained_picking the value entered is  'date': time.strftime('%Y-%m-%d')

you can override it by writing a custom module wich will change column type from and override that method writing correct datime value like: 'date': datetime.strftime('%Y-%m-%d %H:%M:%S')
Writing only date part in datetime field will make server assume time is 00:00:00 .. and your time zone setting will make the timeshift from 00:00:00 to your time... that is why you always have 19:00:00 hrs in your delivery orders.. .

hope it helps.. 



 

Well...I was hoping datetime would work out of the box for OpenERP and I would not have to pay someone to write me a module to correct datetime. I guess datetime working out of the box is too much to ask for.

Elephante, Sean Samborski
on 7/31/14, 4:55 PM

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/23/14, 7:18 AM
Seen: 667 times
Last updated: 3/16/15, 8:10 AM