Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3185 Visualizzazioni

Odoo 16 Enterprise on Windows 10.

created a fresh database, installed Discuss to access Settings, then go to Settings -> Translations -> Languages and selected English to edit, edit Timeformat to %I:%M:%S %p (as per given sample below for 12 hour AM/PM), Saved it and go to Planning app, here it is showing Calendar view and all time is in 12 hour format (first screenshot) ... but in New to create a record it is showing time in 24 hour format (second screenshot), which is wrong as per settings.

please help, how to get time in 12 hour format with AM/PM in Daterange picker?

First screenshot:


Second screenshot:


regards


note: after restarting service it is showing time in 12 hour format with AM/PM in Planning's opening page (first screenshot above) but time picker of daterange picker is still showing time in 24 hour format which should also be in 12 hour format with AM/PM to select. is there any chance to resolve this problem and we can select time in 12 hour format AM/PM

Avatar
Abbandona
Risposta migliore

Hi SmithJohn45,


Checked in Odoo about this, After changing Timeformat to %I:%M:%S %p, It will not directly affect in new planning record because 'daterange' is render and open data from JS.


After reloading the screen, Datetime selection will show time in 12 hour format.


But,On selection of time it will show 24 hour format because this selection data are rendering from JS widget("daterange") 


For that, We need to change in code of widget or create new one.

Hope this answer will help you.

Thanks & Regards,
Email:  odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Abbandona
Autore

thank you @Jainesh Shah for your input, may i have sample code how to modify/change the widget code to have time in 12 hour format with AM/PM as you mentioned?

regards

Autore

any help please?

Post correlati Risposte Visualizzazioni Attività
1
mag 25
2458
1
apr 25
3474
1
apr 25
4303
1
apr 25
1780
4
mar 25
6892