Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
1746 Vues

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
Ignorer
Auteur

Any ideas anyone? Still having this issue!

Meilleure réponse

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
Ignorer
Auteur

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 😔 

Auteur

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!

Auteur Meilleure réponse

Image of the issue:




Avatar
Ignorer
Publications associées Réponses Vues Activité
0
mai 24
1083
0
avr. 22
3302
3
juil. 25
1998
1
juin 25
1348
1
juin 25
2333