Odoo Help


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.


Problem with datetime field (Odoo9)

Adnier Rosello
on 1/24/16, 3:52 PM 365 views

I have this code in a module downloaded from app store,

selected_day = datetime.datetime.strptime('2016-01-19 14:00:00', '%Y-%m-%d %H:%M:%S').strftime('%A')

when I execute the code from odoo, selected_day = 'martes', but if I execute the code from a simple python script selected_day = 'Tuesday', does this have anything to do with selected template language or any configuration for translated terms in odoo? 

thanks for all.

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)


Asked: 1/24/16, 3:52 PM
Seen: 365 times
Last updated: 1/24/16, 8:24 PM