[FIX] mail: do not let chatter to be rendered if form view is in dialog
task-2280151 closes odoo/odoo#54157 X-original-commit: 83f2a0605ad80cb8b544651b47b7d27e11b332cb Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -145,11 +145,10 @@ FormRenderer.include({
|
||||
* @override
|
||||
*/
|
||||
_renderNode(node) {
|
||||
if (
|
||||
!this._isFromFormViewDialog &&
|
||||
node.tag === 'div' &&
|
||||
node.attrs.class === 'oe_chatter'
|
||||
) {
|
||||
if (node.tag === 'div' && node.attrs.class === 'oe_chatter') {
|
||||
if (this._isFromFormViewDialog) {
|
||||
return $('<div/>');
|
||||
}
|
||||
return this._makeChatterContainerTarget();
|
||||
}
|
||||
return this._super(...arguments);
|
||||
|
||||
Reference in New Issue
Block a user