From d7077d49863b47799fd6a82fc0cee28fad05395c Mon Sep 17 00:00:00 2001 From: Romain Estievenart Date: Wed, 5 Oct 2022 09:06:50 +0000 Subject: [PATCH] [FIX] web: `StateSelectionField` on list view Even if the `StateSelectionField` is readonly we doesn't want visual difference and we remove the `disabled` class. This behavior is the same as in 15. We also remove `btn-link` as it's not appear as a link and we had to set `p-0` to avoid the growing of the cell. Steps to reproduce: > Open the helpdesk app > Click on VIP Support tickets > Go to the list view > Add kanban_state column => visual bug closes odoo/odoo#102504 X-original-commit: 26d6942ed1b0c328d94e7dfd5e50c18a68c8c2f3 Signed-off-by: Pierre Paridans (app) Signed-off-by: Romain Estievenart (res) --- .../src/views/fields/state_selection/state_selection_field.xml | 2 +- .../static/tests/views/fields/state_selection_field_tests.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/web/static/src/views/fields/state_selection/state_selection_field.xml b/addons/web/static/src/views/fields/state_selection/state_selection_field.xml index 32c6afee576..636f41f8773 100644 --- a/addons/web/static/src/views/fields/state_selection/state_selection_field.xml +++ b/addons/web/static/src/views/fields/state_selection/state_selection_field.xml @@ -3,7 +3,7 @@ - diff --git a/addons/web/static/tests/views/fields/state_selection_field_tests.js b/addons/web/static/tests/views/fields/state_selection_field_tests.js index 75fe0590aba..831c8535552 100644 --- a/addons/web/static/tests/views/fields/state_selection_field_tests.js +++ b/addons/web/static/tests/views/fields/state_selection_field_tests.js @@ -188,7 +188,6 @@ QUnit.module("Fields", (hooks) => { }); assert.hasClass(target.querySelector(".o_field_state_selection"), "o_readonly_modifier"); - assert.hasClass(target.querySelector(".o_field_state_selection button"), "disabled"); assert.isNotVisible(target.querySelector(".dropdown-menu")); await click(target, ".o_field_state_selection span.o_status"); assert.isNotVisible(target.querySelector(".dropdown-menu"));