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 d6d346723ab..c343f560d2b 100644 --- a/addons/mail/static/src/widgets/form_renderer/form_renderer.js +++ b/addons/mail/static/src/widgets/form_renderer/form_renderer.js @@ -25,6 +25,10 @@ FormRenderer.include({ this.hasAttachmentViewerFeature = params.hasAttachmentViewerFeature; this.chatterFields = params.chatterFields; this.mailFields = params.mailFields; + this.messaging = undefined; + if (owl.Component.env.services.messaging) { + owl.Component.env.services.messaging.get().then(messaging => this.messaging = messaging); + } this._chatterContainerComponent = undefined; /** * The target of chatter, if chatter has to be appended to the DOM.