-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
[18.0][MIG] base_user_role_company: Migration to 18.0 #328
[18.0][MIG] base_user_role_company: Migration to 18.0 #328
Conversation
Currently translated at 100.0% (11 of 11 strings) Translation: server-backend-14.0/server-backend-14.0-base_user_role_company Translate-URL: https://translation.odoo-community.org/projects/server-backend-14-0/server-backend-14-0-base_user_role_company/it/
Issue found on logout / relogin. The user groups were applied correctly, but the main menu showed apps the user did not have access to. This was related to the menu caching mechanisn, that was disabled here.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-backend-14.0/server-backend-14.0-base_user_role_company Translate-URL: https://translation.odoo-community.org/projects/server-backend-14-0/server-backend-14-0-base_user_role_company/
Currently translated at 90.9% (10 of 11 strings) Translation: server-backend-14.0/server-backend-14.0-base_user_role_company Translate-URL: https://translation.odoo-community.org/projects/server-backend-14-0/server-backend-14-0-base_user_role_company/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: server-backend-16.0/server-backend-16.0-base_user_role_company Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role_company/
Currently translated at 100.0% (8 of 8 strings) Translation: server-backend-16.0/server-backend-16.0-base_user_role_company Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role_company/es/
Currently translated at 100.0% (8 of 8 strings) Translation: server-backend-16.0/server-backend-16.0-base_user_role_company Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role_company/pt/
Currently translated at 100.0% (8 of 8 strings) Translation: server-backend-16.0/server-backend-16.0-base_user_role_company Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role_company/es/
Currently translated at 100.0% (8 of 8 strings) Translation: server-backend-16.0/server-backend-16.0-base_user_role_company Translate-URL: https://translation.odoo-community.org/projects/server-backend-16-0/server-backend-16-0-base_user_role_company/it/
0a23db4
to
13aba35
Compare
/ocabot migration base_user_role_company |
13aba35
to
159adb6
Compare
@StefanRijnhart I need to debug the issue and will get with an update soon |
159adb6
to
0d5896d
Compare
0d5896d
to
5a3cdaa
Compare
@yankinmax Wait, you just overwrote most of the migration changes: https://github.com/OCA/server-backend/compare/159adb6ffde762fde388818051c4b42de4cf2618..0d5896d724568725e66730da1842b3b34ef782ca?diff=unified&w=#diff-37a501b2f98480be68553ef3a061c6f92bc31c331e2a7ccf59a9eafb6bb542de |
My bad, I'll update now |
5a3cdaa
to
aad3857
Compare
Maybe I don't know how to configure this module, but on runbot my session crashes if I log in as a user with different roles in two companies, and both companies enabled. At that point, Odoo redirects to portal url
It's not a migration issue because something similar happens in v17, but I think this module should be allowed in the next version before it's fixed (unless someone can point out a beginner mistake I'm making with the configuration). |
aad3857
to
2f95458
Compare
hello @StefanRijnhart , this migration (runboat) was tested by the Camptocamp business analyst. So if a user has a role as Sales Admin on company A and a role as Purchase Admin on company B, then if both companies are selected no role is enabled. Now, if a user has a role as Sales Admin for company A and a role as Sales Own Document for company A and company B, then, if both companies are selected, only the role Sales Own Document will be applied." Can you pls check again and in case it's ok we go further here? |
2f95458
to
4a76665
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.
Thanks for the clarification! I think we can rely on the functional analyst in that case.
/ocabot merge nobump |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at adf0f9e. Thanks a lot for contributing to OCA. ❤️ |
Thanks to @BertVGroenendael the
base_user_role_company
is migrated here: #315This PR is opened to fast-line the merge process.
@StefanRijnhart @ristecona