İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6536 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
Üretici

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.

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Oca 20
4049
2
Kas 19
6400
1
Mar 18
4798
5
Eyl 25
14102
0
Haz 25
681