Skip to content

Conversation

@yajo
Copy link
Member

@yajo yajo commented Apr 22, 2020

We could find in a DB a dangling root menu that was not being used.

After migration, that menu became website's menu, breaking menu layout.

To avoid that problem, make sure that any website-specific-but-unused root menu is transformed to website-agnostic, so the main website menu selected by env['website']._compute_menu() is definitely the menu we create later in this function.

@Tecnativa TT23336

@pedrobaeza
Copy link
Member

Migration script is not correct.

We could find in a DB a dangling root menu that was not being used.

After migration, that menu became website's menu, breaking menu layout.

To avoid that problem, make sure that any website-specific-but-unused root menu is transformed to website-agnostic, so the main website menu selected by `env['website']._compute_menu()` is definitely the menu we create later in this function.

@Tecnativa TT23336
@yajo yajo force-pushed the 12.0-website-fix_dangling_website_specific_menus branch from cbd4ce8 to ad3d3da Compare April 23, 2020 07:25
@MiquelRForgeFlow MiquelRForgeFlow added this to the 12.0 milestone Apr 23, 2020
@pedrobaeza pedrobaeza merged commit cc1a085 into OCA:12.0 Apr 24, 2020
@pedrobaeza pedrobaeza deleted the 12.0-website-fix_dangling_website_specific_menus branch April 24, 2020 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants