跳至内容
菜单
此问题已终结
1 回复
6200 查看

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.

相关帖文 回复 查看 活动
0
1月 20
3661
2
11月 19
6105
1
3月 18
4534
0
6月 25
312
0
1月 25
1414