hello ,
I want to write access rule which apply to all user in system (base.group)
except user in in certain group (group.some_group)
how can write this rule
using odoo 17
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hello ,
I want to write access rule which apply to all user in system (base.group)
except user in in certain group (group.some_group)
how can write this rule
using odoo 17
Record Rules are normally in pairs.
For example, the access group “Sales / User: Own Documents Only” has a Record Rule on Sales Orders (and Quotations) with this domain:
['|', ('user_id','=',user.id), ('user_id','=',False) ]
This will only allow access to:
Alongside this, the group “Sales / User: All Documents” has a Record Rule with this domain:
[(1,'=',1)]
This will grant access to ALL Sales Orders / Quotations. So there is no restriction.
You should be able to adapt this for your needs. If limited access is available to all users you can use the group base.group_user (Internal User) for the first rule.
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar