From 49f649b9917ab56f0f32d7749ad4170aae5d2da1 Mon Sep 17 00:00:00 2001 From: Pierre Paridans Date: Thu, 14 Sep 2023 10:00:56 +0200 Subject: [PATCH] [FIX] web: default DateTimePicker has wrong number of column MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Following the introduction of the `showWeekNumbers` prop on DateTimePicker component (see commit 7552284e781dc7e1c72a93d5f37d16b1b05bda4c), the number of column (CSS custom property) wasn't properly defined in the template. This commit fixes it and adds related asserts in QUnit tests. closes odoo/odoo#135427 Signed-off-by: Adrien Dieudonné (adr) --- .../src/core/datetime/datetime_picker.xml | 2 +- .../core/datetime/datetime_picker_tests.js | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/core/datetime/datetime_picker.xml b/addons/web/static/src/core/datetime/datetime_picker.xml index b57dba131bb..f2ecf93f4b1 100644 --- a/addons/web/static/src/core/datetime/datetime_picker.xml +++ b/addons/web/static/src/core/datetime/datetime_picker.xml @@ -137,7 +137,7 @@