odoo/odoo#92022

Created by Guillaume Dieleman (gdi)
Merged at 78b96fdcbec47bf4e368fb3ce03cca8603fa4530

Statuses:

label
odoo-dev:13.0-fix-blog-top-banner-gdi
head
3c4165f8905e7156c42f34cdfdfce0c65afc857c
merged
1 year ago by Website, Quentin Smetz (qsm)
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

[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