From c9cbd5bf58ad439eb3165073c99d43e7efa64efa Mon Sep 17 00:00:00 2001 From: "Mahdi Cheikh Rouhou (macr)" Date: Thu, 3 Aug 2023 08:32:45 +0000 Subject: [PATCH] [FIX] web : display timepicker in ltr direction for rtl lang Issue: ====== The time display for rtl language is the sale as ltr but in the timepicker it's displayed as seconds-minutes-hours which is wrong. Steps to reproduce the error: ============================= 1-Install calendar 2-Change the language to Arabic 3-Go to calendar and click on create new 4-Click on the datepicker for start for example and click on select time Solution: ========= I made the display of the datepicker independant of the direction of language and alwyas display it in ltr direction. opw-3423875 closes odoo/odoo#132589 X-original-commit: 3e21b50ef51b9f3ebf06b5cd16e3b11497b56896 Signed-off-by: Julien Mougenot (jum) Signed-off-by: Mahdi Cheikh Rouhou (macr) --- addons/web/static/src/core/datetime/datetime_picker.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web/static/src/core/datetime/datetime_picker.scss b/addons/web/static/src/core/datetime/datetime_picker.scss index 976c21db315..2930312881e 100644 --- a/addons/web/static/src/core/datetime/datetime_picker.scss +++ b/addons/web/static/src/core/datetime/datetime_picker.scss @@ -147,4 +147,9 @@ .o_text_sm { font-size: 0.875rem; } + + .o_time_picker { + /*rtl:ignore*/ + direction: ltr; + } }