diff options
| author | Mathieu Duckerts-Antoine <dam@odoo.com> | 2019-09-05 11:50:49 +0000 |
|---|---|---|
| committer | Mathieu Duckerts-Antoine <dam@odoo.com> | 2019-09-12 13:09:35 +0000 |
| commit | b39affc4962030158e826713e481d95442393061 (patch) | |
| tree | 8048ec6f507c971b2d32f1be462797e77fee2cc2 /addons/web/static/src | |
| parent | 44ea2adda7fcd6458b048b2034b6db5d9182d788 (diff) | |
[FIX] web: click on an embedded pivot view cell does not causes a crash
The custom event 'open_view' triggered by the pivot
renderer was not stopped in the pivot controller. This
used to cause a crash because the dashboard controller
also listens to a custom event with the same name but
following another logic.
The present fix simply stop the propagaton of the event.
A test has been added in the module web_dashboard.
closes odoo/odoo#36466
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views/pivot/pivot_controller.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/pivot/pivot_controller.js b/addons/web/static/src/js/views/pivot/pivot_controller.js index 998d6ccc22c..47eb5ad49fe 100644 --- a/addons/web/static/src/js/views/pivot/pivot_controller.js +++ b/addons/web/static/src/js/views/pivot/pivot_controller.js @@ -340,6 +340,7 @@ var PivotController = AbstractController.extend({ * @param {OdooEvent} ev */ _onOpenView: function (ev) { + ev.stopPropagation(); var context = ev.data.context; var group = ev.data.group; var domain = this.model._getGroupDomain(group); |
