diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-10-27 14:30:33 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-10-27 14:30:33 +0200 |
| commit | a54c60b45a1246a29ef8c5cef7681964f27e1435 (patch) | |
| tree | 0e9ce7f7be9d37b59db0d495db43cb265b7a3df5 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 49b8eed40857a9e352c8c9b8c90715a065eccd5c (diff) | |
| parent | e918271f7600d9f77dc6631e48814f0daf951ad8 (diff) | |
[MERGE] forward port branch 11.0 up to e918271f760
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
| -rw-r--r-- | addons/web/static/src/js/views/basic/basic_controller.js | 6 |
1 files changed, 5 insertions, 1 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 44275de7a43..1c8060a6fe1 100644 --- a/addons/web/static/src/js/views/basic/basic_controller.js +++ b/addons/web/static/src/js/views/basic/basic_controller.js @@ -447,7 +447,11 @@ var BasicController = AbstractController.extend(FieldManagerMixin, { */ _setMode: function (mode, recordID) { if ((recordID || this.handle) === this.handle) { - return this.update({mode: mode}, {reload: false}); + return this.update({mode: mode}, {reload: false}).then(function () { + // necessary to allow all sub widgets to use their dimensions in + // layout related activities, such as autoresize on fieldtexts + core.bus.trigger('DOM_updated'); + }); } return $.when(); }, |
