İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
1645 Görünümler

Hey fellow Odoo users, 


I apologise if this question has been asked and answered previously, my google-fu has failed me today.


I am trying to create a custom group of users who have specific access rights in the Recruitment module in Odoo 17. I want them to have almost identical access to admin with the only exception being that they can only see their own submissions (instead of seeing everyones). 


I thought this would be rather simple since its like admin but minus 1 specific thing, however since implementing it, the "New" button in Recruitment has disappeared, so the users are not able to add any job roles at all unless I revert them to full admin, which then means its a mess for them as they all see each others job roles.


Any tips at all? Would love to get the button back + make sure the guys arent seeing each others job roles


Thanks in advance

Avatar
Vazgeç
Üretici

Any ideas anyone? Still having this issue!

En İyi Yanıt

Hi,

You can create record rules to limit the visibility of job roles based on ownership. For example:

<record model="ir.rule" id="rule_job_role_own">
    <field name="name">User Own Recruitment Job Rule</field>
    <field name="model_id" ref="hr.model_hr_job"/>
<field name="domain_force">[('user_id', '=', user.id)]</field>
    <field name="perm_read" eval="True"/>
    <field name="perm_write" eval="True"/>
    <field name="perm_unlink" eval="True"/>
    <field name="perm_create" eval="True"/>
    <field name="groups" eval="[(4, ref('custom_user_id'))]"/>
</record>

Ensure that custom_user_id is the ID of your custom group.


Hope it helps

Avatar
Vazgeç
Üretici

Hey Cybrosys,

Thats exactly what I have, however, the "New" button in the Recruitment window is missing from that record rule, so people are unable to create new job roles. I would share a screenshot to show however I do not have enough Karma yet to do so

I duplicated the Admin group and based it on that and added a similar Record Rule to it, it succeeds in making sure they only see their own submitted job roles, just removes the ability to create any new ones 😔 

Üretici

Hey! Not sure if you saw my reply but still getting the issue where the button disappears, any ideas at all?

Thank you in advance!

Üretici En İyi Yanıt

Image of the issue:




Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
May 24
998
0
Nis 22
3222
3
Tem 25
1832
1
Haz 25
1196
1
Haz 25
1911