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

opw-741077
This commit closes #16616
This commit is contained in:
Jeremy Kersten
2017-04-30 11:57:46 +02:00
parent e0ff2840a5
commit 76d0444fde
2 changed files with 12 additions and 0 deletions
@@ -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>
@@ -1,3 +1,5 @@
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
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_hr_employee_public hr.employee.public hr.model_hr_employee base.group_public 1 0 0 0
3 access_hr_employee_portal hr.employee.portal hr.model_hr_employee base.group_portal 1 0 0 0
4 access_resource_public resource.resource.public resource.model_resource_resource base.group_public 1 0 0 0
5 access_resource_portal resource.resource.portal resource.model_resource_resource base.group_portal 1 0 0 0