summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2019-09-03 13:30:04 +0000
committerLucas Perais (lpe) <lpe@odoo.com>2019-09-03 14:24:58 +0000
commitb7e3469931f69091e47b4c6c2ce8a83669fa7313 (patch)
treee42714710d77221b0910ef534f5d575c986488e0 /addons/web/static/src/js
parent75460e697a20505aa22b3a273d3056e0bdc75633 (diff)
[FIX] web: grouped list as grouped list as child
In grouped editable list, get rid of the groups Edit one record in the editable list In a M2O, click on search more In search's list, group by a field Expand a group in the search's list Before this commit, it crashes because the event was propagated onto the first main list After this commit, it doesn't crash and the group is expanded OPW 2064156 closes odoo/odoo#36383 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/views/list/list_controller.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/list/list_controller.js b/addons/web/static/src/js/views/list/list_controller.js
index 524bd2034db..9fb765f8ae2 100644
--- a/addons/web/static/src/js/views/list/list_controller.js
+++ b/addons/web/static/src/js/views/list/list_controller.js
@@ -579,6 +579,7 @@ var ListController = BasicController.extend({
* @param {OdooEvent} event
*/
_onToggleGroup: function (event) {
+ event.stopPropagation();
this.model
.toggleGroup(event.data.group.id)
.then(this.update.bind(this, {}, {keepSelection: true, reload: false}));