[FIX] website_blog: fix link addable on blog cover
A customer reported an issue when he tried to add a link on the blog covers of his blog. The link is displayed as text and it's added to all the covers.  According to SBU, the user should not do this. This commit prevents the user from editing a blog cover. OPW-2119924 closes odoo/odoo#40816 X-original-commit: 576fe145941add48481ebbb066cd9715dc83fb55 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
@@ -183,10 +183,10 @@ according to the enabled options.
|
||||
|
||||
<t t-call="website.record_cover">
|
||||
<t t-set="_record" t-value="blog_post"/>
|
||||
<t t-set="additionnal_classes" t-value="'o_list_cover' + (not opt_blog_cards_design and ' rounded overflow-hidden shadow mb-3' or '')"/>
|
||||
<t t-set="additionnal_classes" t-value="'o_list_cover o_not_editable ' + (not opt_blog_cards_design and ' rounded overflow-hidden shadow mb-3' or '')"/>
|
||||
|
||||
<t t-if="opt_posts_loop_show_author" t-call="website_blog.post_author">
|
||||
<t t-set="additionnal_classes" t-value="'o_wblog_post_list_author o_list_cover d-flex text-white w-100 ' + ('p-3 h5 m-0' if opt_blog_list_view else 'px-2 pb-2 pt-3') "/>
|
||||
<t t-set="additionnal_classes" t-value="'o_wblog_post_list_author o_list_cover d-flex text-white w-100 o_not_editable ' + ('p-3 h5 m-0' if opt_blog_list_view else 'px-2 pb-2 pt-3') "/>
|
||||
<t t-set="hide_date" t-value="True"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user