Odoo Help

0

Change date format from date time to just date.

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

Hi,

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,

Damian

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
4
Janeesh
On 9/24/17, 6:20 AM
Change
date_order = fields.Datetime('Date')
to
date_order = fields.Date('Date')
1
Shameem Babu @ iWesabe
On 11/14/16, 10:59 PM

Damian,

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?

Keyur
on 11/15/16, 12:27 AM

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

GLOBAL CREATIVE CONCEPTS TECH CO LTD, Shameem Babu @ iWesabe
on 11/15/16, 12:33 AM

When changing a field type, existing data will be cleared

Janeesh
on 9/24/17, 6:18 AM
0
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.

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

Question tools

1 follower(s)

Stats

Asked: 11/14/16, 12:45 PM
Seen: 999 times
Last updated: 9/24/17, 6:21 AM