From 3ef67c6beb6c3cdc626cde90ce0a8e9f213b35d2 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Fri, 22 May 2026 23:01:44 -0400 Subject: [PATCH] fix(fusion_plating_shopfloor): import fields in manager_controller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Phase 4 endpoints (/fp/manager/funnel, approval_inbox, at_risk) all use fields.Datetime.now() but the controller only imported http + request. Hitting the Workflow Funnel tab on Manager Desk threw: NameError: name 'fields' is not defined Funnel auto-loads on dashboard mount → infinite spinner + 'Funnel: Odoo Server Error' notification. Same bug would have hit at_risk and approval_inbox on first navigation. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../fusion_plating_shopfloor/controllers/manager_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fusion_plating/fusion_plating_shopfloor/controllers/manager_controller.py b/fusion_plating/fusion_plating_shopfloor/controllers/manager_controller.py index 6c4d5d26..6bedec7a 100644 --- a/fusion_plating/fusion_plating_shopfloor/controllers/manager_controller.py +++ b/fusion_plating/fusion_plating_shopfloor/controllers/manager_controller.py @@ -21,7 +21,7 @@ import logging from markupsafe import Markup -from odoo import http +from odoo import fields, http from odoo.addons.fusion_plating.models.fp_tz import fp_format from odoo.http import request