From 7fd7422647cc125e64cd3e82a55e31ede4c92919 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Mon, 29 Jun 2020 12:31:43 +0000 Subject: [PATCH] [FIX] hr_attendance: All internal can modifiy hr.attendance Steps to reproduce: - Let's consider a user U with no access to hr.attendance - Let's consider that U has made some check in and check out - Log with U - Go to your profile and on Last month Bug: U can modifiy manually his attendances. opw:2279682 closes odoo/odoo#53878 X-original-commit: 53a4a95270622f3aa08136470fb627d51ed4b365 Signed-off-by: Simon Goffin (sig) --- .../views/hr_attendance_view.xml | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/addons/hr_attendance/views/hr_attendance_view.xml b/addons/hr_attendance/views/hr_attendance_view.xml index adf2ca3e4cd..feada7164d6 100644 --- a/addons/hr_attendance/views/hr_attendance_view.xml +++ b/addons/hr_attendance/views/hr_attendance_view.xml @@ -7,7 +7,7 @@ hr.attendance.tree hr.attendance - + @@ -16,6 +16,19 @@ + + hr.attendance.tree.inherit + hr.attendance + + + + + 1 + bottom + + + + hr.attendance.kanban hr.attendance @@ -50,7 +63,7 @@ hr.attendance.form hr.attendance -
+ @@ -62,6 +75,18 @@ + + hr.attendance.form.inherit + hr.attendance + + + + + 1 + + + + hr_attendance_view_filter hr.attendance