Odoo Help

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

You can do that with a widget:

<field name="date_order" widget="date"/>
3
Ankit H Gandhi(AHG)
On 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
Axel Mendoza
On 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)
On 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'))"/>
 

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

Magen
on 7/26/18, 4:46 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 9/3/15, 4:23 AM
Seen: 18131 times
Last updated: 12/24/18, 7:58 AM