-
Notifications
You must be signed in to change notification settings - Fork 23.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] web: Always show the name of the company on the app top right #160057
Conversation
9925fba
to
baacdbb
Compare
baacdbb
to
31575da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I think @Olivier-olma simply missed it. Well seen @malb-odoo . I propose to replace the company selector with just a label if len(companies) == 1 |
You are right, I missed it, thanks @malb-odoo |
31575da
to
8e35859
Compare
@qdp-odoo should be fixed now |
addons/web/static/src/webclient/switch_company_menu/switch_company_menu.js
Outdated
Show resolved
Hide resolved
c542201
to
f84e57f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks for this ! 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello. This should be tested
4695d88
to
cce9d50
Compare
@aab-odoo @malb-odoo I have added a unit test |
72437df
to
9ca7d9c
Compare
LGTM as well! |
@BastienFafchamps you may want to rebuild or fix this PR as it has failed CI. |
9f9399c
to
99c8c8f
Compare
Removed the isDisplayed condition of the SwitchCompanyMenu component. With this, the name of the company on the top right of the app will always be shown even is there is only one company. Also, if there is a single company, the company selector will be disabled. The name of the company on the top right of the app was hidden when there was only one company. task-3829645
99c8c8f
to
8adaa1b
Compare
@BastienFafchamps Please review my last update. I have only added nullish coalescing operator for |
@robodoo r+ @hsal-odoo thanks! |
Removed the isDisplayed condition of the SwitchCompanyMenu component. With this, the name of the company on the top right of the app will always be shown even is there is only one company. Also, if there is a single company, the company selector will be disabled. The name of the company on the top right of the app was hidden when there was only one company. task-3829645 closes #160057 Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Removed the isDisplayed condition of the SwitchCompanyMenu component.
With this, the name of the company on the top right of the app will always be shown even is there is only one company.
Also, if there is a single company, the company selector will be disabled.
The name of the company on the top right of the app was hidden when there was only one company.
task-3829645
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr