From f92b1a2e962f7e8ba39f0892d24bc53c5a3e6667 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 19 Jun 2017 16:14:00 +0200 Subject: [PATCH] [FIX] web: failed forward-port of https://github.com/odoo/odoo/commit/c4c9347b9986f60f1b8a534b805e248b25e3eef8 The mentioned commit exposed a `Dialog` instance thanks to a return and an event triggering. The forward-port failed in saas-14 as the code landed in the wrong function. As the event trigger seems to be useless code without any context and that this code has been hugely refactored in recent versions, this commit simply removes it. Feel free to expose variables again in version 11.0. opw-748027 --- addons/web/static/src/js/views/form_widgets.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js index 35881551560..c3fafb1646f 100644 --- a/addons/web/static/src/js/views/form_widgets.js +++ b/addons/web/static/src/js/views/form_widgets.js @@ -519,13 +519,11 @@ var FieldDomain = common.AbstractField.extend(common.ReinitializeFieldMixin).ext }).open(); }, openDomainDialog: function () { - new DomainSelectorDialog(this, this.model, this.get("value") || "[]", { + return new DomainSelectorDialog(this, this.model, this.get("value") || "[]", { readonly: this.get("effective_readonly"), fs_filters: this.options.fs_filters, debugMode: session.debug, }).open(); - this.trigger("dialog_opened", dialog); - return dialog; }, });