summaryrefslogtreecommitdiff
path: root/addons/mail/static
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2020-12-22 16:59:46 +0000
committerAaron Bohy <aab@odoo.com>2021-02-11 07:44:15 +0000
commit953fb092636b9919aaa6c6a6cfaffd003ba951d5 (patch)
treef1af3b961f3475c31a7de4560467774135541714 /addons/mail/static
parent1f99f5df22b3d36775a7386af170c126a481279b (diff)
[FIX] web,mail: Call on_attach_callback when appending content
Before this commit, the form renderer would call "on_attach_callback" only when the whole _render process was over. The problem was that this process is asynchronous and this callback should be invoked as soon as the widgets are appended. As such, any asynchronous operation is performed before appending the content in a new function "__renderView". Task 2346540 closes odoo/odoo#60791 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/mail/static')
-rw-r--r--addons/mail/static/src/widgets/form_renderer/form_renderer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/widgets/form_renderer/form_renderer.js b/addons/mail/static/src/widgets/form_renderer/form_renderer.js
index e4c3161c4da..cf147656d63 100644
--- a/addons/mail/static/src/widgets/form_renderer/form_renderer.js
+++ b/addons/mail/static/src/widgets/form_renderer/form_renderer.js
@@ -145,7 +145,7 @@ FormRenderer.include({
*
* @override
*/
- async _renderView() {
+ async __renderView() {
await this._super(...arguments);
if (this._hasChatter()) {
if (!this._chatterContainerComponent) {