What does mean of this code below when creating a security group
<record id="base.default_user" model="res.users">
<field name="groups_id" eval="[(4,ref('hr_holidays.group_hr_holidays_manager'))]"/>
</record>
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
What does mean of this code below when creating a security group
<record id="base.default_user" model="res.users">
<field name="groups_id" eval="[(4,ref('hr_holidays.group_hr_holidays_manager'))]"/>
</record>
Thanks
Hi Yazeed,
record_id="default_user" is the record of Default User Template
This is a User Template used for assigning default access rights to newly created users.
Default user with full access rights for newly created users
The code you have given is to assign the Default User Template as Manager of Leaves.
Thanks
can you explain more please
what is the purpose of this code ?
what if i don't write it, does it change anything?
In case you are creating new group, if you assign the new group to this template, next time if you try to create new user, the user will assign to the new group asdefault.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 1 20
|
3669 | ||
|
2
thg 11 19
|
6117 | ||
|
1
thg 3 18
|
4539 | ||
|
0
thg 6 25
|
314 | ||
|
0
thg 1 25
|
1418 |