Odoo Help

Welcome!

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.

0

Change date format from date time to just date.

By
Damian Galinski
on 11/14/16, 12:45 PM 244 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
0

Ray Carnes

--Ray Carnes--
15677
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

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.

1
shameem@aχoncoms
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

shameem@aχoncoms
on 11/15/16, 12:33 AM

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)

Stats

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