diff options
| author | Jairo Llopis <Yajo@users.noreply.github.com> | 2017-06-08 13:53:49 +0200 |
|---|---|---|
| committer | ged-odoo <ged@odoo.com> | 2017-06-08 13:53:49 +0200 |
| commit | c4c9347b9986f60f1b8a534b805e248b25e3eef8 (patch) | |
| tree | a04f6a7eaccc35a4a3a2d4d8e181727e8317fba0 /addons/web/static/src | |
| parent | 8052869b19aaf2105713e0a8ba0555ca25dc26ef (diff) | |
[IMP] web: Expose char_domain dialog widget
This simple return allows submodules to be able to know when a dialog is shown and modify something in it.
Note from GED: I am aware that this is a IMP in a stable version, and I really don't like that... But it looks like it really helps many people, as shown by the PR, and the risk induced by this commit is definitely extremely low, so I will make an exception.
(PR: #15579)
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views/form_widgets.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js index 450025ee06b..70a11214901 100644 --- a/addons/web/static/src/js/views/form_widgets.js +++ b/addons/web/static/src/js/views/form_widgets.js @@ -501,6 +501,8 @@ var FieldCharDomain = common.AbstractField.extend(common.ReinitializeFieldMixin, } } }).open(); + this.trigger("dialog_opened", dialog); + return dialog; }, }); |
