From 1491f2367b39fea1b327006b8a25217d7fd0b0cb Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Fri, 24 Apr 2026 22:44:16 -0400 Subject: [PATCH] refactor(jobs): address code review feedback on Task 1.8 admin views - I1: Lock time_log_ids list inside step Audit tab to read-only (no create/edit/delete on the nested list). Audit timelog rows are produced exclusively by button_start / button_finish; if a manager could hand-edit them, cost_total rollups would silently drift. - I2: Add explicit list view (decoration on state) and search view (filters by state/kind, group_by state/work_centre/job) for fp.job.step. The Steps (Admin) menu was using Odoo's default auto-list with no filter, which would be unusable after a few weeks of step accumulation. Action now references the search view explicitly. Manifest 19.0.8.7.0 -> 19.0.8.7.1. Part of: native job model migration (spec 2026-04-25) Co-Authored-By: Claude Opus 4.7 (1M context) --- fusion_plating/fusion_plating/__manifest__.py | 2 +- .../views/fp_job_step_views.xml | 51 ++++++++++++++++++- 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/fusion_plating/fusion_plating/__manifest__.py b/fusion_plating/fusion_plating/__manifest__.py index 0307e5cc..7cddbac7 100644 --- a/fusion_plating/fusion_plating/__manifest__.py +++ b/fusion_plating/fusion_plating/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Fusion Plating', - 'version': '19.0.8.7.0', + 'version': '19.0.8.7.1', 'category': 'Manufacturing/Plating', 'summary': 'Core plating / metal finishing ERP: facilities, processes, tanks, baths, jobs, operators.', 'description': """ diff --git a/fusion_plating/fusion_plating/views/fp_job_step_views.xml b/fusion_plating/fusion_plating/views/fp_job_step_views.xml index fac949f9..d462167e 100644 --- a/fusion_plating/fusion_plating/views/fp_job_step_views.xml +++ b/fusion_plating/fusion_plating/views/fp_job_step_views.xml @@ -1,5 +1,51 @@ + + fp.job.step.list + fp.job.step + + + + + + + + + + + + + + + + fp.job.step.search + fp.job.step + + + + + + + + + + + + + + + + + + + + + + + + fp.job.step.form fp.job.step @@ -61,8 +107,8 @@ - - + + @@ -84,5 +130,6 @@ Job Steps fp.job.step list,form +