Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
1643 Zobrazení

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
Zrušit
Autor

Any ideas anyone? Still having this issue!

Nejlepší odpověď

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
Zrušit
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 Nejlepší odpověď

Image of the issue:




Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
kvě 24
994
0
dub 22
3220
3
čvc 25
1818
1
čvn 25
1193
1
čvn 25
1880