Currently, when a user has access to a branch of a company, but not to the company itself, the branch will not show up in the company switcher. As a result, the user is not able to switch back to that branch when logged in to another company. To fix this, we now show the whole hierarchy of the branches you have access to, disabling the companies/branches you don't have access to. task-3503204 Part-of: odoo/odoo#138942