From 3e5e6fd3e3505f4e21714d0e9dff8f25a00f4035 Mon Sep 17 00:00:00 2001 From: "Xavier Bol (xbo)" Date: Tue, 26 Sep 2023 10:29:11 +0200 Subject: [PATCH] [IMP] hr_org_chart: add new menu Org Chart in Employee menu This commit adds a new menu called `Org Chart` in Emnployee menu to directly have the Org chart view as first view when the user clicks on that button. task-3376776 --- addons/hr_org_chart/__manifest__.py | 1 + .../hr_org_chart/views/hr_org_chart_menus.xml | 13 +++++++++++++ addons/hr_org_chart/views/hr_views.xml | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 addons/hr_org_chart/views/hr_org_chart_menus.xml diff --git a/addons/hr_org_chart/__manifest__.py b/addons/hr_org_chart/__manifest__.py index e546443fa5d..4348b31e8fb 100644 --- a/addons/hr_org_chart/__manifest__.py +++ b/addons/hr_org_chart/__manifest__.py @@ -18,6 +18,7 @@ This module extend the employee form with a organizational chart. 'data': [ 'views/hr_department_views.xml', 'views/hr_views.xml', + 'views/hr_org_chart_menus.xml', ], 'assets': { 'web._assets_primary_variables': [ diff --git a/addons/hr_org_chart/views/hr_org_chart_menus.xml b/addons/hr_org_chart/views/hr_org_chart_menus.xml new file mode 100644 index 00000000000..1a9aa229f18 --- /dev/null +++ b/addons/hr_org_chart/views/hr_org_chart_menus.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/addons/hr_org_chart/views/hr_views.xml b/addons/hr_org_chart/views/hr_views.xml index eff9fc32a26..052d1caeef9 100644 --- a/addons/hr_org_chart/views/hr_views.xml +++ b/addons/hr_org_chart/views/hr_views.xml @@ -1,5 +1,24 @@ + + Org Chart + hr.employee + hierarchy,kanban,tree,form,activity,graph,pivot + [] + {'chat_icon': True} + + + +

+ Add a new employee +

+ With just a quick glance on the Odoo employee screen, you + can easily find all the information you need for each person; + contact data, job position, availability, etc. +

+
+
+ hr.employee.view.form.inherit.org_chart hr.employee