Repository navigation
Conversation
…s in allowed_company_ids context
SirPyTech
force-pushed
the
18.0-mig-web_select_all_companies
branch
from
November 19, 2026 10:36
9b8f8c6 to
aa23997
Compare
Contributor
Author
|
@DorianMAG @JulienMartinez @flotho @tarteo you seemed interested in the other migration #3340, would you like to have a look at this one too? Thanks! |
Contributor
|
Code and functional review, LGTM Thank you, this simplifies the module greatly |
HekkiMelody
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migration from
16.0(https://github.com/OCA/web/tree/701a980e7ab785f3372fd4e26cf285bab1baab0e/web_select_all_companies).Supersede #3340 because the author has not replied in months.
As written in superseded PR, Odoo core itself added this feature but only if the user can access at least 10 companies (https://github.com/odoo/odoo/blob/d4e6fd3ab9bf36ff5e96e98925933c54f5c7fdb0/addons/web/static/src/webclient/switch_company_menu/switch_company_menu.js#L196).
After the migration, this module simply updates that threshold so that the new feature is enabled as soon as the user has 2 companies.