コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
1759 ビュー

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

アバター
破棄
著作者

Any ideas anyone? Still having this issue!

最善の回答

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

アバター
破棄
著作者

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 😔 

著作者

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!

著作者 最善の回答

Image of the issue:




アバター
破棄
関連投稿 返信 ビュー 活動
0
5月 24
1094
0
4月 22
3325
3
7月 25
2059
1
6月 25
1358
1
6月 25
2439