User roles by company
Project description
Enable User Roles depending on the Companies selected.
A company specific Role will only be enabled if it is set for all the currently selected companies.
For example, if a user is “Sales Manager” only for Company A, it will see that role enabled only if Company A is selected. If the user selects Company A and Company B, then the “Sales Manager” role won’t be enabled.
Table of contents
Configuration
Roles are set on the User form.
The “Company” additional column allows to set a Role as only valid for specific companies.
There is also a “Active Role” techincal field, only visible in developer mode. It shows what roles are active, after applying the company selection rules.
Usage
Select the active companies from the web client widget, near the top right corner. When doing so, the User’s security Groups are recomputed, based on the Roles.
When the user changes the company selection, only the groups available to all active companies will be activated.
For example:
A “SALES PERSON” and a “SALES MANAGER” roles are created.
- A user is assigned to the roles:
“SALES PERSON”, with no specific company assigned (meaning all)
“SALES MANAGER” only to “My Company (Chicago)”
- When selecting active companies from the UI widget:
If only “My Company (San Francisco)” is active, “SALES PERSON” will be active.
If only “My Company (Chicago)” is active, “SALES PERSON” and “SALES MANAGER” will be active.
If both “My Company (San Francisco)” and “My Company (Chicago)” is active, “SALES PERSON” will be active.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Daniel Reis <dreis@opensourceintegrators.com>
Chandresh Thakkar <cthakkr@opensourceintegrators.com>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
This module is part of the OCA/server-backend project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo12_addon_base_user_role_company-12.0.1.0.0.99.dev5-py3-none-any.whl
.
File metadata
- Download URL: odoo12_addon_base_user_role_company-12.0.1.0.0.99.dev5-py3-none-any.whl
- Upload date:
- Size: 28.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/60.3.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10e50d7924ccbc1508a68f75d02f72c348ea46330e6f6e8439830be4c71eb0fc |
|
MD5 | 11edb0656252bd6126a01e16fd5cfda7 |
|
BLAKE2b-256 | e68998e12128efe8dcf72c19b02042c16210abc48f6383cb3f459ece0819dd3e |