summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2017-06-21 10:46:09 +0200
committerAdrien Dieudonne <adr@odoo.com>2017-06-21 13:30:40 +0200
commit5fa51c5201c0e2244531b192f26e9b55751d4aa8 (patch)
tree5978f6755e472afaecbd42ea4a432af29f72d377 /addons/web/static/src/js
parente921f14d24d4cbf39fe3e13256cf5966d7cf5fae (diff)
[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.
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/views/basic/basic_controller.js1
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 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);
},
/**