Set security group for all users
Here we will explain how to set security group for all users in odoo from xml file , so to do that we will add all users to the specific group by adding the bellow line to group xml tag
<field model="res.users" name="users" search="[('id', '!=', 0)]"/>
EG :
<record id="group_api_tap" model="res.groups">
<field name="name">APIs</field>
<field model="res.users" name="users" search="[('id', '!=', 0)]"/>
<field name="category_id" ref="validator.module_validator"/>
</record>
No comments:
Post a Comment