Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3183 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor

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

Autor

any help please?

Publicaciones relacionadas Respuestas Vistas Actividad
1
may 25
2457
1
abr 25
3474
1
abr 25
4303
1
abr 25
1780
4
mar 25
6891