From 36b9f3052829494b064e4abb0900ec041ea867b7 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Fri, 24 Apr 2026 23:06:51 -0400 Subject: [PATCH] refactor(jobs): drop index=True on part_catalog_id for consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Code review noted this was asymmetric — only part_catalog_id had explicit index=True among the 5 new fields, and Phase 1 core fp.job relies on Odoo's implicit FK btree for ALL Many2ones (no explicit indexes). Removed for consistency. Important I2 (no explicit ondelete= policies) is deferred to a phase-end polish task that addresses both Phase 1 core and Phase 2 extension fields uniformly. Manifest 19.0.1.1.0 → 19.0.1.1.1. Part of: native job model migration (spec 2026-04-25) Co-Authored-By: Claude Opus 4.7 (1M context) --- fusion_plating/fusion_plating_jobs/__manifest__.py | 2 +- fusion_plating/fusion_plating_jobs/models/fp_job.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fusion_plating/fusion_plating_jobs/__manifest__.py b/fusion_plating/fusion_plating_jobs/__manifest__.py index be3276f2..9720dded 100644 --- a/fusion_plating/fusion_plating_jobs/__manifest__.py +++ b/fusion_plating/fusion_plating_jobs/__manifest__.py @@ -3,7 +3,7 @@ # License OPL-1 (Odoo Proprietary License v1.0) { 'name': 'Fusion Plating — Native Jobs', - 'version': '19.0.1.1.0', + 'version': '19.0.1.1.1', 'category': 'Manufacturing/Plating', 'summary': 'Native plating job model — replaces mrp.production / mrp.workorder bridge.', 'description': """ diff --git a/fusion_plating/fusion_plating_jobs/models/fp_job.py b/fusion_plating/fusion_plating_jobs/models/fp_job.py index 9e63e85e..77b74d07 100644 --- a/fusion_plating/fusion_plating_jobs/models/fp_job.py +++ b/fusion_plating/fusion_plating_jobs/models/fp_job.py @@ -19,7 +19,6 @@ class FpJob(models.Model): part_catalog_id = fields.Many2one( 'fp.part.catalog', string='Part', - index=True, ) coating_config_id = fields.Many2one( 'fp.coating.config',