130 likes | 160 Views
Record rules are conditions that must be satisfied in order for an operation to be allowed. Record rules are evaluated record-by-record. Record rules are default-allow: if access rights grant access and no rule applies to the operation and model for the user, the access is granted.<br>Ref: https://www.cybrosys.com/slides/record-rules-in-odoo-15-erp
E N D
Security in Odoo 15 Record Rules in Odoo 15 www.cybrosys.com
INTRODUCTION • Aside from manually managing access using custom code, Odoo provides two main • data-driven mechanisms to manage or restrict access to data. • Record rules are conditions which must be satisfied in order for an operation to be allowed. Record rules are evaluated record-by-record. • Record rules are default-allow: if access rights grant access and no rule applies to the operation and model for the user, the access is granted.
RecordRules • In business, there are different types of records. And it is essential to provide proper security for those records. • In Odoo, there are also some security rules. The rules define who can access the following objects. • In record rules, we describe some conditions for certain operations.
There are four access modes in the record rule: - Create: Access for creating records - Write: Access for writing or editing the records - Read: Access for reading or viewing the records - Delete: Access for deleting the records
These are the access modes set for the group . This group has only the permission to read or view the records because other permissions are false.
In the case of domain_force, we set the domain for the record rule. The rule will apply when it matches the record.
Here we can specify the group; the rule will apply for the corresponding groups only.
Check our company website for related blogs and Odoo book. Odoo Book V15 Check our YouTube channel for functional and technical videos in Odoo. Security in Odoo 15 - Record Rules in Odoo15 For More Details