From fab315489ce458d64d4b5e8db6cc72370352db98 Mon Sep 17 00:00:00 2001 From: Swapnesh Shah Date: Fri, 15 May 2020 18:07:43 +0000 Subject: [PATCH] [FIX] hr: show Create employee button based on company employee Before this commit, the `Create Employee` button was not visible if user is linked to employee in any other company as the domain was based on `employee_count`. (Which represents Employee belongs to all companies) With this commit, we check for `employee_id` which makes sure if the user has linked Employee for currently activated company. Followup on 95564bcd2c7ee42f25e07b7319c28b22b41dc46f X-original-commit: cb9ac24caea53615e2808a36e850939a1ccaa041 --- addons/hr/views/res_users.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/hr/views/res_users.xml b/addons/hr/views/res_users.xml index 2f3b0abbe9c..98ea67ee750 100644 --- a/addons/hr/views/res_users.xml +++ b/addons/hr/views/res_users.xml @@ -205,9 +205,10 @@ +