[FIX] hr_timesheet: timesheet button in employees view

Before this commit, only the users with timesheet 'Administrator' rights
can see the Timesheet button in the employees view.

Now, the users with timesheet 'See all Timesheet' rights can see the
Timesheet button in the employees view.

This is the behaviour in version 12.

opw-2285695

closes odoo/odoo#54543

X-original-commit: c839ecda6c696ac54ceaf24b2ee1816cb358052a
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
This commit is contained in:
Jorge Pinna Puissant
2020-07-16 07:40:35 +00:00
parent 978f8ca4ef
commit e0baa3be18
+1 -1
View File
@@ -57,7 +57,7 @@
<field name="name">hr.department.kanban.inherit</field>
<field name="model">hr.department</field>
<field name="inherit_id" ref="hr.hr_department_view_kanban"/>
<field name="groups_id" eval="[(4,ref('hr_timesheet.group_timesheet_manager'))]"/>
<field name="groups_id" eval="[(4,ref('hr_timesheet.group_hr_timesheet_user'))]"/>
<field name="arch" type="xml">
<data>
<xpath expr="//div[hasclass('o_kanban_manage_reports')]" position="inside">