Protect ir.rule records
by IT-Projects LLC https://www.odoo.com/apps/modules/14.0/ir_rule_protected/ , Ivan Yelizariev https://www.odoo.com/apps/modules/14.0/ir_rule_protected/
Odoo
Lines of code | 39 |
Technical Name |
ir_rule_protected |
Website | https://www.odoo.com/apps/modules/14.0/ir_rule_protected/ |
Also available in version | v 10.0 v 13.0 v 8.0 v 11.0 v 14.0 v 12.0 v 9.0 |

Protect ir.rule records
The module allows protect ir.rule from modifying and deleting. Once a rule is marked as protected only superuser is able to control this rule.
Also, the module protect itself from uninstalling by non-superuser.
Roadmap
- The module should allow specifying which admins can switch to superuser mode (set True to all existing admins and False for any new users)
Further information
Tested on Odoo 14.0
Protect ir.rule records
Installation
- Install this module in a usual way
Usage
- Log in as SUPERUSER
- Activate Developer Mode
- Open menu [[ Settings ]]>> Technical >> Security >> Record Rules
- Select or create some record
- Click [Edit]
- Set "Protected" checkbox and click [Save] button.
- RESULT: the record is protected from modifying and deleting by non-superuser.
Please log in to comment on this module