mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[IMP] base_user_role_company: black, isort, prettier
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
Roles are set on the User form.
|
||||
|
||||
The "Company" additional column allows to set a Role as only valid for specific companies.
|
||||
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.
|
||||
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.
|
||||
5
base_user_role_company/readme/CONTRIBUTORS.md
Normal file
5
base_user_role_company/readme/CONTRIBUTORS.md
Normal file
@@ -0,0 +1,5 @@
|
||||
[Open Source Integrators](http://opensourceintegrators.com)
|
||||
|
||||
> - Daniel Reis \<<dreis@opensourceintegrators.com>\>
|
||||
> - Chandresh Thakkar \<<cthakkr@opensourceintegrators.com>\>
|
||||
> - Urvisha Desai \<<udesai@opensourceintegrators.com>\>
|
||||
@@ -1,5 +0,0 @@
|
||||
`Open Source Integrators <http://opensourceintegrators.com>`_
|
||||
|
||||
* Daniel Reis <dreis@opensourceintegrators.com>
|
||||
* Chandresh Thakkar <cthakkr@opensourceintegrators.com>
|
||||
* Urvisha Desai <udesai@opensourceintegrators.com>
|
||||
8
base_user_role_company/readme/DESCRIPTION.md
Normal file
8
base_user_role_company/readme/DESCRIPTION.md
Normal file
@@ -0,0 +1,8 @@
|
||||
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.
|
||||
@@ -1,9 +0,0 @@
|
||||
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.
|
||||
22
base_user_role_company/readme/USAGE.md
Normal file
22
base_user_role_company/readme/USAGE.md
Normal file
@@ -0,0 +1,22 @@
|
||||
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.
|
||||
@@ -1,17 +0,0 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user