odoo/odoo#162592

Created by fw-bot
Merged at 47abb43c32c21465298bcf00d0cd4db843a54080

Statuses:

label
odoo-dev:saas-16.4-13.0-fix-blog-top-banner-gdi-O8cL-fw
head
21f59a6ee4e77124312a4005ace1193295c399bf
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