diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-06-21 16:42:56 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-06-21 16:42:56 +0200 |
| commit | 3de0715f12d1a965d444f2d1cc816ca3d740a839 (patch) | |
| tree | f723c2d334a2b7ff6f6764384da62944e470ab3e /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 5fa51c5201c0e2244531b192f26e9b55751d4aa8 (diff) | |
[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.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
| -rw-r--r-- | addons/web/static/src/js/views/basic/basic_controller.js | 1 |
1 files changed, 1 insertions, 0 deletions
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', |
