Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3171 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Penulis

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

Penulis

any help please?

Post Terkait Replies Tampilan Aktivitas
1
Mei 25
2402
1
Apr 25
3425
1
Apr 25
4242
1
Apr 25
1741
4
Mar 25
6841