1.3 KiB
1.3 KiB
Quality Button Restriction
Overview
This module restricts the visibility of the "Quality Checks" button and access to quality features to only users who are explicitly assigned the "Quality User" group.
Features
- Decouples Quality User Rights: Removes the default behavior where "Inventory Users" and "Manufacturing Users" automatically inherit "Quality User" rights.
- Strict Access Control: Ensures that only users with the explicitly assigned "Quality / User" or "Quality / Administrator" role can initiate quality checks or view quality alerts.
Configuration
To grant a user access to Quality features:
- Go to Settings > Users & Companies > Users.
- Select the user.
- In the Human Resources / Other tab (depending on Odoo version), locate the Quality field.
- Set the value to User or Administrator.
Technical Details
This module uses a post_init_hook to automatically detect and decouple "hidden" manufacturing groups (such as "MPS User") that implicitly grant "Quality User" rights but do not have standard XML IDs. This ensures that the restriction is applied comprehensively across all manufacturing roles and resolves potential "Access Rights Mismatch" warnings.
Dependencies
qualitystockmrpquality_mrp