From c8d10d228e722e3476e845c58e966ff96cd9f5d7 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Mon, 15 Jul 2019 12:56:19 +0000 Subject: [PATCH] [FIX] web: boolean widgets in editable list should activate the row Put toogle_button or a favorite widget to handle a boolean field in an editable list click straight up on the widget's button or link Before this commit, the widget changed its appearence, but the changes were not propagated to the model. This is because the controller will not force_save if its mode is edit (to let changes piling up and save everything when clicking save), which is the case of the editable list After this commit, following what has been done at 2f5e44d40b35ea6790a5e10223273c0cbe900c87 clicking on a widget in an editable list just activates the row for editing but doesn't change the widget's value OPW 2033700 closes odoo/odoo#34878 Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/scss/list_view.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/scss/list_view.scss b/addons/web/static/src/scss/list_view.scss index 85b9b9f6f07..2933850b9f4 100644 --- a/addons/web/static/src/scss/list_view.scss +++ b/addons/web/static/src/scss/list_view.scss @@ -10,9 +10,11 @@ border-collapse: initial; border-spacing: 0; - // Checkbox in editable list + // Boolean Widgets in editable list // should be clickable and activate the row &.o_editable_list .o_data_row:not(.o_selected_row) .o_data_cell { + &.o_toggle_button_cell:not(.o_readonly_modifier) button, // registry: toggle_button + &.o_boolean_favorite_cell:not(.o_readonly_modifier) .o_favorite, // registry: boolean_favorite .custom-checkbox:not(.o_readonly_modifier) { pointer-events: none; }