Skip to content
Snippets Groups Projects
Commit 76d0444f authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] website_hr: fix access right to allow portal user to read employee website_published

opw-741077
This commit closes #16616
parent e0ff2840
Branches
Tags
No related merge requests found
......@@ -10,4 +10,14 @@
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
</record>
<record id="hr_employee_portal" model="ir.rule">
<field name="name">hr_employee: Portal</field>
<field name="model_id" ref="hr.model_hr_employee"/>
<field name="domain_force">[('website_published', '=', True)]</field>
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="False"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
</record>
</odoo>
\ No newline at end of file
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_hr_employee_public,hr.employee.public,hr.model_hr_employee,base.group_public,1,0,0,0
access_hr_employee_portal,hr.employee.portal,hr.model_hr_employee,base.group_portal,1,0,0,0
access_resource_public,resource.resource.public,resource.model_resource_resource,base.group_public,1,0,0,0
access_resource_portal,resource.resource.portal,resource.model_resource_resource,base.group_portal,1,0,0,0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment