From 6c6a59ceef67ed833e494c1c72c5ed275764d5cc Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Thu, 7 May 2026 08:04:23 -0400 Subject: [PATCH] feat(fusion_planning): add Employee Roles editor under Planning > Configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New menu "Planning > Configuration > Employee Roles" opens an editable list of all active employees with two columns made for fast bulk assignment: - Default Role (m2o, fills new shifts automatically) - All Allowed Roles (m2m tags, controls open-shift visibility) Per-row inline editing with multi_edit enabled, grouped by department. No wizard, no popup — set role per employee in one screen and move on. Visible to planning.group_planning_manager. Co-Authored-By: Claude Opus 4.7 (1M context) --- fusion_planning/__manifest__.py | 3 +- .../views/hr_employee_role_views.xml | 59 +++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 fusion_planning/views/hr_employee_role_views.xml diff --git a/fusion_planning/__manifest__.py b/fusion_planning/__manifest__.py index 8ad83070..0ec8c6d6 100644 --- a/fusion_planning/__manifest__.py +++ b/fusion_planning/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Fusion Planning', - 'version': '19.0.1.1.1', + 'version': '19.0.1.2.0', 'category': 'Human Resources/Planning', 'summary': 'Fusion Clock bridge to Odoo Planning - employee schedule on the portal', 'description': """ @@ -27,6 +27,7 @@ Adds Odoo Planning to the Fusion Clock product family: ], 'data': [ 'views/planning_slot_views.xml', + 'views/hr_employee_role_views.xml', 'views/portal_schedule_templates.xml', 'views/portal_nav_inherit.xml', ], diff --git a/fusion_planning/views/hr_employee_role_views.xml b/fusion_planning/views/hr_employee_role_views.xml new file mode 100644 index 00000000..fa3772ac --- /dev/null +++ b/fusion_planning/views/hr_employee_role_views.xml @@ -0,0 +1,59 @@ + + + + + + hr.employee.list.planning.role.editor + hr.employee + + + + + + + + + + + + + + + Employee Roles + hr.employee + list + + [('active', '=', True)] + {'search_default_group_department': 1} + +

+ Set the Default Role and allowed Roles for each employee +

+

+ Click any cell under Default Role or All Allowed Roles + and start typing. Changes save automatically. The Default Role + fills in for every new shift you create for that employee. +

+
+
+ + + + +