diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2020-07-30 10:20:29 +0000 |
|---|---|---|
| committer | Lucas Lefèvre <lul@odoo.com> | 2020-07-30 13:45:07 +0000 |
| commit | 35b4b6b745a5c3d9df63a4a3e6ff2659126aa0ad (patch) | |
| tree | 05f51f27f0268fafac147963c0da89709973d677 /addons/web/static/src/js | |
| parent | 1e28e7274b8ab006b6723b5a33bc5c399f6c4613 (diff) | |
[FIX] web: Close dialog when clicking button with close attribute
In a dialog, a button with `close="1"` should close the dialog when clicked.
It currently only works if the dialog is a subview.
closes odoo/odoo#55200
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: fleodoo <fle@odoo.com>
Co-authored-by: aab-odoo <aab@odoo.com>
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/chrome/action_manager.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome/action_manager.js b/addons/web/static/src/js/chrome/action_manager.js index aee954342fa..bdcc93e022a 100644 --- a/addons/web/static/src/js/chrome/action_manager.js +++ b/addons/web/static/src/js/chrome/action_manager.js @@ -393,7 +393,7 @@ var ActionManager = Widget.extend({ return dialog.open().opened(function () { self.currentDialogController = controller; - + widget.setParent(dialog); dom.append(dialog.$el, widget.$el, { in_DOM: true, callbacks: [{widget: dialog}, {widget: controller.widget}], |
