From 5fa51c5201c0e2244531b192f26e9b55751d4aa8 Mon Sep 17 00:00:00 2001 From: Adrien Dieudonne Date: Wed, 21 Jun 2017 10:46:09 +0200 Subject: [FIX] web: basic_controller: avoid multiple name_create Before this fix, multiple records were created if you clicked on the quick create of a many2one in a modal. The 'mutexify' event wasn't stopped and was thus handled by the dialog's form controller and by the main form 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 af4ca7d7a08..2ade7f7ca8c 100644 --- a/addons/web/static/src/js/views/basic/basic_controller.js +++ b/addons/web/static/src/js/views/basic/basic_controller.js @@ -534,6 +534,7 @@ var BasicController = AbstractController.extend(FieldManagerMixin, { * @param {function} ev.data.action the function to execute in the mutex */ _onMutexify: function (ev) { + ev.stopPropagation(); // prevent other controllers from handling this request this.mutex.exec(ev.data.action); }, /** -- cgit v1.2.3