[FIX] web_editor, mass_mailing: fix assets template unable to load
View rendering from javascript has recently been made to check permissions (See commits64d0dab0a6throughccc98e0169). Some assets required by the iframe editor are rendered in JS so that they can be injected into the iframe, but their permissions had not been updated, causing a crash when trying to create or edit a mass_mailing campaign. This commit fixes that by adding groups="base.group_user" to the required templates. closes odoo/odoo#51598 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -29,12 +29,12 @@
|
||||
<link rel="stylesheet" type="text/scss" href="/web/static/src/scss/webclient.scss"/>
|
||||
</template>
|
||||
|
||||
<template id="iframe_css_assets_edit">
|
||||
<template id="iframe_css_assets_edit" groups="base.group_user">
|
||||
<t t-call-assets="mass_mailing.assets_mail_themes" t-js="false"/>
|
||||
<t t-call-assets="mass_mailing.assets_mail_themes_edition" t-js="false"/>
|
||||
</template>
|
||||
|
||||
<template id="iframe_css_assets_readonly">
|
||||
<template id="iframe_css_assets_readonly" groups="base.group_user">
|
||||
<link rel="stylesheet" type="text/scss" href="/mass_mailing/static/src/css/basic_theme_readonly.css"/>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Snippets & Themes Menu -->
|
||||
<template id="email_designer_snippets" inherit_id="web_editor.snippets" primary="True">
|
||||
<template id="email_designer_snippets" inherit_id="web_editor.snippets" primary="True" groups="base.group_user">
|
||||
<xpath expr="//div[@id='snippets_menu']" position="inside">
|
||||
<button type="button" disabled="disabled">Select a template</button>
|
||||
</xpath>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="wysiwyg_iframe_editor_assets" name="Editor assets for wysiwyg iframe content">
|
||||
<template id="wysiwyg_iframe_editor_assets" name="Editor assets for wysiwyg iframe content" groups="base.group_user">
|
||||
<t t-call-assets="web.assets_common"/>
|
||||
<t t-call-assets="web.assets_frontend" t-js="false"/>
|
||||
<t t-call-assets="web_editor.assets_wysiwyg"/>
|
||||
|
||||
Reference in New Issue
Block a user