Odoo Help


Change date format from date time to just date.

Damian Galinski
on 11/14/16, 12:45 PM 727 views


All fields with date (Order date, Scheduled date etc) are in format datetime. Can I change it to just date?

Here is screenshot:

https://www.dropbox.com/s/x8ps66k3xymhdn0/Screenshot 2016-11-14 11.44.57.png



Thanks for reply.

Do I need to change it in the code or somewhere in settings?

Damian Galinski
on 11/17/16, 4:12 PM
Ray Carnes
On 11/18/16, 8:47 PM

With Developer Mode active:

1. Settings --> Translations --> Languages.

2. Click on English (or the language you use).

3. Set Time Format to a space (it can't be blank).

Refresh the browser page or log out and back in.  In the screens and reports I tried after making this change, it worked fine - no times showed up where Datetimes were previously shown.   I didn't test exhaustively.

On 11/14/16, 10:59 PM


You redefine to Datefield from Datetimefield

# Before
date_field = fields.Datetime('Date')

# After
date_field = fields.Date('Date')

Shameem, by doing this what will happen to past data?

on 11/15/16, 12:27 AM

Sorry I don't know the past data is converted or ignored

on 11/15/16, 12:33 AM

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.


Odoo Training Center

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

Test it now

Question tools

1 follower(s)


Asked: 11/14/16, 12:45 PM
Seen: 727 times
Last updated: 11/19/16, 10:53 PM