From 3de0715f12d1a965d444f2d1cc816ca3d740a839 Mon Sep 17 00:00:00 2001 From: Martin Geubelle Date: Wed, 21 Jun 2017 16:42:56 +0200 Subject: [FIX] web: basicController: stop translate event Before this fix, a traceback occured when we clicked on the translate icon in a form dialog. The `translate` event wasn't stopped and was thus handled by the dialog's form controller and by the main controller. --- addons/web/static/src/js/views/basic/basic_controller.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src/js/views/basic/basic_controller.js') diff --git a/addons/web/static/src/js/views/basic/basic_controller.js b/addons/web/static/src/js/views/basic/basic_controller.js index 2ade7f7ca8c..5024a67677e 100644 --- a/addons/web/static/src/js/views/basic/basic_controller.js +++ b/addons/web/static/src/js/views/basic/basic_controller.js @@ -579,6 +579,7 @@ var BasicController = AbstractController.extend(FieldManagerMixin, { * @param {OdooEvent} event */ _onTranslate: function (event) { + event.stopPropagation(); var record = this.model.get(event.data.id, {raw: true}); this._rpc({ route: '/web/dataset/call_button', -- cgit v1.2.3