Restrict with groups and domain action access
Project description
Using restriction records you can create domains for different groups. Domain will allow/deny action run on specific target model records.
If all restrictions of an action are without domain - action is hidden based on group (base_action_visibility_restriction behaviour).
If at least one restriction with domain - action is shown. Access will be defined once user run action.
If restriction record without domain - user can’t run action. If with domain - domain defines for which records user (users group) can run action.
Table of contents
Usage
Restrict access to a Window Action.
Window actions normally have a wizard - window that opens after you run action.
Window actions have as Destination Model a model of the wizard. Not a target model.
Lets say you want to limit access to the window action Create Invoices for Sale Order.
Enable debug mode.
Select multiple records in the Sale Orders list view.
Action -> Create Invoices.
Click bug symbol. Click Edit Action.
Go to Security tab.
Create restrictions lines and save.
Restrict access to a Server Action.
Server actions dont have a wizard. They are linked directly to a target model. They are performed right away after you click action.
Lets say you want to limit access to the server action Mark Quotation as Sent for Sale Order.
Enable debug mode.
Go to Settings -> Technical -> Server Actions.
Search for Mark Quotation as Sent. You can see in the Model field it is Sale Order.
Go to Security tab.
Create restrictions lines and save.
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 to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Ilyas <irazor147@gmail.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.
Current maintainer:
This module is part of the OCA/server-ux 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 odoo14_addon_base_action_visibility_restriction_domain-14.0.1.0.1.dev4-py3-none-any.whl
.
File metadata
- Download URL: odoo14_addon_base_action_visibility_restriction_domain-14.0.1.0.1.dev4-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15d871f84d73d8e5f1c587116bfc8e9cf8f4f2a6f0083aa9f0ac03a26dccf3a1 |
|
MD5 | 548cd7079646a66af36819f9d2e5745b |
|
BLAKE2b-256 | d08f2afc9025a1a6640d50a74262909b6d59dfabae25790b291a2c474739c406 |