From 71e59f43c090530d3d162d90d956d69c8f324a30 Mon Sep 17 00:00:00 2001
From: Kevin Baptiste <kba@odoo.com>
Date: Fri, 22 Oct 2021 11:39:23 +0000
Subject: [PATCH] [FIX] hr: remove footer buttons on My Profile

The "Save" / "Cancel" buttons were wrongly showing on the "My Profile"
page.

closes odoo/odoo#78820

Taskid: 2675313
Signed-off-by: Kevin Baptiste <kba@odoo.com>
---
 addons/hr/views/res_users.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/addons/hr/views/res_users.xml b/addons/hr/views/res_users.xml
index e31c03203c8b..7aac631cd2c0 100644
--- a/addons/hr/views/res_users.xml
+++ b/addons/hr/views/res_users.xml
@@ -41,6 +41,9 @@
                     <attribute name="create">false</attribute>
                     <attribute name="js_class">hr_employee_profile_form</attribute>
                 </form>
+                <footer position="attributes">
+                    <attribute name="invisible">1</attribute>
+                </footer>
                 <notebook position="replace">
                         <field name="hr_presence_state" invisible="1"/>
                         <header>
-- 
GitLab