From da1ca065109b0067567ee0e982c7c5b8cbe3c5f5 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Sat, 18 Apr 2026 23:12:38 -0400 Subject: [PATCH] fix(employee-form): drop invalid color_field reference on Shop Roles m2m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'Tasks This Operator Can Do' many2many_tags widget declared options="{'no_create_edit': True, 'color_field': 'color'}" but fp.work.role doesn't have a color field — Odoo then tried to fetch it on every employee form load and crashed with: ValueError: Invalid field 'color' on 'fp.work.role' Dropped the color_field option. Roles still render as tags, just without the coloured chip background. (If we want coloured chips later, add a Color integer field to fp.work.role and restore the option — but the feature wasn't wired up anyway.) Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_bridge_mrp/views/fp_work_role_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fusion_plating/fusion_plating_bridge_mrp/views/fp_work_role_views.xml b/fusion_plating/fusion_plating_bridge_mrp/views/fp_work_role_views.xml index 7b726755..f374d58d 100644 --- a/fusion_plating/fusion_plating_bridge_mrp/views/fp_work_role_views.xml +++ b/fusion_plating/fusion_plating_bridge_mrp/views/fp_work_role_views.xml @@ -95,7 +95,7 @@
Work orders tagged with these roles auto-assign to