summaryrefslogtreecommitdiff
path: root/addons/website_blog
diff options
context:
space:
mode:
authorYounn Olivier <yol@odoo.com>2021-02-11 08:25:20 +0000
committerqsm-odoo <qsm@odoo.com>2021-04-06 09:52:46 +0000
commit83a56d8e6f7f9093efb1f7393c61cdc1a5bc937c (patch)
tree2d4ee04257a1b518520ce68a2f30c0967520e6cf /addons/website_blog
parent656cac1bf21c7c5a56aa569008aac58436c747fb (diff)
[FIX] website_blog: hide content width button in blog context
The user was not able to change the width of the first content of a blog because it's not part of a blog. This commit will hide content width option for every content in a blog post. Part of https://github.com/odoo/odoo/pull/65575 task-2446852
Diffstat (limited to 'addons/website_blog')
-rw-r--r--addons/website_blog/views/snippets/snippets.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/website_blog/views/snippets/snippets.xml b/addons/website_blog/views/snippets/snippets.xml
index 7ed70e79f7c..d33581c383f 100644
--- a/addons/website_blog/views/snippets/snippets.xml
+++ b/addons/website_blog/views/snippets/snippets.xml
@@ -28,5 +28,10 @@
<xpath expr="//*[@data-js='anchor']" position="attributes">
<attribute name="data-exclude" add=".o_wblog_post_content_field > :not(div, section)" separator=","/>
</xpath>
+
+ <!-- Hides ContainerWidth option for content in blog posts -->
+ <xpath expr="//div[@data-js='ContainerWidth']" position="attributes">
+ <attribute name="data-exclude" add="#o_wblog_post_content *" separator=","/>
+ </xpath>
</template>
</odoo>