Odoo Help

5
6 Answers
6
Mario Gielissen
9/12/15, 1:20 PM

You can do that with a widget:

<field name="date_order" widget="date"/>
3
Avatar

Ankit H Gandhi(AHG)

--Ankit H Gandhi(AHG)--

1334
| 6 5 6
Baroda, India
--Ankit H Gandhi(AHG)--

Learning Python..

Ankit H Gandhi(AHG)
9/13/15, 2:56 AM

Dear Isabelle Richard,

First you need to enable the Technical Features under your user account, then go to

Settings ->Translations -> Languages.

Edit your current language and change the date format

Thanks & Regards

Ankit H Gandhi.

0
Avatar

Axel Mendoza

--Axel Mendoza--
13358
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
12/23/15, 2:36 AM

Use this module:

https://github.com/OCA/web/tree/8.0/web_widget_datepicker_options

0
Jainik Patel (jaa)
12/16/15, 1:36 AM

It seems like o.date_order it's not a datetime object but a string. Using the time module is the way to go:

<span t-esc="time.strftime('%A, %d %B %Y',time.strptime(o.date_order,'%Y-%m-%d %H:%M:%S'))"/>
 

1 Comment
Magen
7/26/18, 4:46 AM

This works but does not consider the language (I believe the results are according to the current locale)

Ask a Question
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.

Register
Odoo Training Center

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

Test it now