From 14d7781f4a8783b5b33ccf36ded893c419705112 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Sun, 12 Apr 2026 20:32:26 -0400 Subject: [PATCH] fix(fusion_tasks): clean sync refs from views and JS map component Remove x_fc_sync_source, x_fc_is_shadow, x_fc_sync_client_name, x_fc_source_label references from form/list/kanban/calendar XML views and the map view JS component. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../static/src/js/fusion_task_map_view.js | 7 ++- .../views/technician_task_views.xml | 46 ++++--------------- 2 files changed, 12 insertions(+), 41 deletions(-) diff --git a/fusion-plating/fusion_tasks/static/src/js/fusion_task_map_view.js b/fusion-plating/fusion_tasks/static/src/js/fusion_task_map_view.js index 38bec401..a86e711e 100644 --- a/fusion-plating/fusion_tasks/static/src/js/fusion_task_map_view.js +++ b/fusion-plating/fusion_tasks/static/src/js/fusion_task_map_view.js @@ -232,15 +232,14 @@ function groupTasks(tasksData, localInstanceId, visibleTechIds) { task._statusColor = STATUS_COLORS[task.status] || "#6b7280"; task._statusLabel = STATUS_LABELS[task.status] || task.status || ""; task._statusIcon = STATUS_ICONS[task.status] || "fa-circle"; - task._clientName = task.x_fc_sync_client_name || (task.partner_id ? task.partner_id[1] : "N/A"); + task._clientName = task.partner_id ? task.partner_id[1] : "N/A"; task._techName = task.technician_id ? task.technician_id[1] : "Unassigned"; task._typeLbl = task.task_type ? task.task_type.charAt(0).toUpperCase() + task.task_type.slice(1).replace("_", " ") : "Task"; task._timeRange = `${task.time_start_display || floatToTime12(task.time_start)} - ${task.time_end_display || ""}`; - const src = task.x_fc_sync_source || localInstanceId || ""; - task._sourceLabel = src ? src.charAt(0).toUpperCase() + src.slice(1) : ""; - task._sourceColor = SOURCE_COLORS[src] || "#6c757d"; + task._sourceLabel = ""; + task._sourceColor = "#6c757d"; task._dateLabel = task.scheduled_date ? new Date(task.scheduled_date + "T12:00:00").toLocaleDateString(undefined, { weekday: 'short', month: 'short', day: 'numeric' }) : "No date"; diff --git a/fusion-plating/fusion_tasks/views/technician_task_views.xml b/fusion-plating/fusion_tasks/views/technician_task_views.xml index 0406458a..7a67aa52 100644 --- a/fusion-plating/fusion_tasks/views/technician_task_views.xml +++ b/fusion-plating/fusion_tasks/views/technician_task_views.xml @@ -63,14 +63,9 @@ - + - - - @@ -89,44 +84,32 @@ fusion.technician.task
- -
- -
-

@@ -260,9 +243,6 @@ decoration-danger="status == 'cancelled'"/> - @@ -288,8 +268,6 @@ - -
@@ -308,12 +286,7 @@
- - - - - - +
@@ -354,7 +327,6 @@ quick_create="0"> -