Skip to content
Snippets Groups Projects
Commit f15b2a45 authored by Benoit Socias's avatar Benoit Socias
Browse files

[FIX] website: write website-specific views before they get a new id


When both a specific inheriting view and a non-specific base view are
written simultaneously, the specific inheriting base view must be
updated even though its id will change during the COW of the base view.

This commit sorts the list of written views in order to first handle the
website-specific ones then the base ones which might change some of the
ids of the already updated view.

Steps to reproduce in 14.0+ (no scenario found in 13.0):
- Create a new website.
- Configure the language selector layout to "Inline".
- Configure the language selector layout to "None".
=> Error notification was displayed and change was not applied.

task-2885882

closes odoo/odoo#96120

X-original-commit: cdd82554
Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
parent f53b8e34
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment