Skip to Content
Menú
This question has been flagged
2 Respostes
1639 Vistes

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
Descartar
Autor

Any ideas anyone? Still having this issue!

Best Answer

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
Descartar
Autor

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 😔 

Autor

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!

Autor Best Answer

Image of the issue:




Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de maig 24
992
0
d’abr. 22
3216
3
de jul. 25
1803
1
de juny 25
1188
1
de juny 25
1864