author: @kawam @mayna tags:#odoo
For rules, they specify which operation the rules applies for. If an operation is not selected, then the rule is not checked for it, as if the rule did not exist.
Record rules adalah additional dari access right, jika syarat terpenuhi maka record rules akan berjalan sesuai dengan permission yang diatur.
Contoh:
Access right full Access terhadap inventory receipt site skhq:
Permission: Read, Write, Create.
Syarat:
[(‘picking_type_id.site_id.name’, ’=’, ‘SKHQ’), (‘picking_type_id.picking_detailed_code’, ’=’, ‘IN’)]
Access Right No Delete untuk inventory receipt skhq:
Permission: Delete.
Syarat:
[(0, ’=’, 1)] > Always False.