[IMP] mail: introduce messaging variable in form renderer code

It is used in enterprise to further clean up the code.

Part of task-2871070

Part-of: odoo/odoo#95085
This commit is contained in:
Sébastien Theys
2022-07-01 20:41:40 +02:00
parent 3e33deb48f
commit d32865aa91
@@ -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.