[FIX] mass_mailing: should not crash when loading snippets
Current behavior before fix: In mobile view when we click invite button on events module which loads the snippet, at that time there was a traceback. Desired behavior after fix: Now the snippet gets loaded without any traceback. Task-2994261 closes odoo/odoo#106734 X-original-commit: 634f6ae4d4208f0551bc2b81c359915eb47316b5 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -210,7 +210,7 @@ export class MassMailingHtmlField extends HtmlField {
|
||||
|
||||
if (device.isMobile) {
|
||||
$snippetsSideBar.hide();
|
||||
this.$content.attr('style', 'padding-left: 0px !important');
|
||||
this.wysiwyg.$iframe.attr('style', 'padding-left: 0px !important');
|
||||
}
|
||||
|
||||
if (!odoo.debug) {
|
||||
|
||||
Reference in New Issue
Block a user