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
This commit is contained in:
qsm-odoo
2017-06-19 16:14:00 +02:00
parent 0d2fb541e8
commit f92b1a2e96
@@ -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;
},
});