Add Configurable User Threshold Support
Project description
User Threshold
This module adds the ability to limit the amount of non-portal/public users that exist in the database and per-company.
It adds a group named User Threshold Managers which are the only users who can alter the thresholds.
This module also limits the ability of users to add membership to the manager group to pre-existing members. By default, Administrator is the only member of this group.
Additionally, there is a flag that can be set on users so that they do not count towards the user threshold.
Using the USER_THRESHOLD_HIDE environment variable, you can also hide the threshold exemption flag from users and the company setting for user threshold. Setting this flag will also remove threshold exemptions for any users who are not defined in the USER_THRESHOLD_USER environment variable.
There are two modules available that also implement functionality similar to what is provided in this module but in a more abstract way. They are:
https://github.com/it-projects-llc/access-addons/tree/10.0/access_limit_records_number https://github.com/it-projects-llc/access-addons/tree/10.0/access_restricted
Usage
A system parameter named user.threshold.database is added by default with the value of ‘0’ (Unlimited). Set this value to the total number of users you wish to allow in the database.
A field has been added to users to allow you to exempt them from the thresholds.
A field has been added to all companies, which allows you to define the max number of users that the company can have.
The following environment variables are available for your configuration ease:
Name |
Description |
---|---|
USER_THRESHOLD_HIDE |
Hide all threshold settings and default the exempt users to those defined by the USER_THRESHOLD_USERS variable. |
USER_THRESHOLD_USER |
White list of users who are exempt from the threshold. |
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 smash it by providing detailed and welcomed feedback.
Credits
Images
Odoo Community Association: Icon.
Contributors
Ted Salmon <tsalmon@laslabs.com>
Dave Lasley <dave@laslabs.com>
Maintainer
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.
To contribute to this module, please visit https://odoo-community.org.
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 odoo10_addon_user_threshold-10.0.1.0.1.99.dev6-py2-none-any.whl
.
File metadata
- Download URL: odoo10_addon_user_threshold-10.0.1.0.1.99.dev6-py2-none-any.whl
- Upload date:
- Size: 53.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/30.4.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0199f1c7789c555f2c5f63ce7ea72984e05f3cb1306e28850994c6223f5a533c |
|
MD5 | 3ca7a3055a01cb9657476c93ea350e64 |
|
BLAKE2b-256 | b5cceb875036a9a943fbd9032837a665d96b88f4ffd667fc67c9ad4bb08fc8bb |