Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Odoo 19 Datepicker format is MMM d

形象
odoo
形象
丢弃
5 答案
0
形象
odoo
最佳答案

Hello,

Go to settings  >>>  Translations  >>>  Languages 


形象
丢弃
0
形象
odoo
最佳答案

Where can I get that javascript override to change the datepicker format? I prefer to have it in MM/dd/YYYY because in the report during the printing, old documents will not show the date.  (I can create a computed field though but takes extra coding).

1 备注
形象
丢弃
形象
odoo
-

Reports always show the full date.

0
形象
odoo
最佳答案

Hello John,



  Odoo's date format, including the Datepicker, is influenced by the language settings of your user preferences. The default format you're seeing (MMM d) is likely due to the language and locale settings currently applied. To adjust the date format to MM/dd/YYYY, you can follow these steps:

  1. Navigate to Settings > Users & Companies > Users.

  2. Select your user and click on Edit.

  3. Scroll down to the Preferences section and locate the Language field.

  4. Change your language to one that typically uses the MM/dd/YYYY format, or if your preferred language is already selected, you might need to adjust the locale settings directly in the source code or through server settings, as Odoo's frontend date format is tightly coupled with the language preferences.

  5. Save your changes and refresh the page to see the updated date format.


For personalized assistance:
https://www.pragtech.co.in/contact-us-mql.html

形象
丢弃
0
形象
odoo
最佳答案

We changed the date format in Odoo 19 based on user interface/user experience research showing that including a textual representation of the month is easier and more reliable to interpret than all-numeric formats. It reduces cognitive load on Users.

For any date field or date time field in Odoo 19 you can hover over it to see the traditional format:


1 备注
形象
丢弃
形象
odoo
-

Hi, I am a newbie here, just in fact testing and learning Odoo to see if I can use it in my small new company. Seeing that I cannot easilly set the prefered date format in all views came as a big surprise and dissapointment. People from various regions are used to various ways of displaying the date, and forcing everybody to use a format often totally different from the standard they are used to increases the cognitive load, instead of decreasing it. For me it poses a problem.

0
形象
odoo
最佳答案

Hi,

In Odoo 19, the datepicker defaults to MMM d (e.g., Sep 18) because it uses the Luxon library with localized formats, which can be confusing compared to the old MM/dd/yyyy. You can change this by editing the Language → Date Format in settings, but the picker may still show abbreviated months. The most reliable fix is a small JavaScript override in a custom module to force MM/dd/yyyy everywhere..





Hope it helps

形象
丢弃