odoo/odoo#162620

Created by fw-bot
Merged at 9d37080b6a78997dbdf70bdbd92ac9ae5877943d

Statuses:

label
odoo-dev:17.0-13.0-fix-blog-top-banner-gdi-mTym-fw
head
4baa4a0ce50c8a45bd0801edbdf856377bac0a60
merged
1 year ago by Guillaume Dieleman (gdi)
odoo/odoo
15.0 #92022
16.0 #162519
saas-16.3 #162576
saas-16.4 #162592
17.0 #162620
saas-17.1 #162646
saas-17.2 #162663
saas-17.4
18.0
saas-18.1
saas-18.2
saas-18.3
master #162682

[FW][FIX] website_blog: fix blog top banner

Before this commit an error appeared if a block had been set at the top
of the /blog page and the user wished to re-enable the
'Top banner - Name / Latest Post' option. This commit resolves the issue
by giving higher priority to the activated view.

Steps to reproduce the fixed bug:
- Go on /blog page
- Disable the customize option "Top banner - Name / Latest Post"
- Enter in edit mode
- Add a snippet to the top (in the oe_structure)
- Save the page
- Enable the customize option "Top banner - Name / Latest Post"

=> An error happens.

task-2774944

Forward-Port-Of: #162519
Forward-Port-Of: #92022