From f9cb1b11cee0f68fd30382cb506432ca510978f5 Mon Sep 17 00:00:00 2001 From: gsinghpal Date: Fri, 22 May 2026 22:43:34 -0400 Subject: [PATCH] =?UTF-8?q?fix(fusion=5Fplating=5Fjobs):=20drop=20ir.cron?= =?UTF-8?q?=20numbercall/doall=20=E2=80=94=20removed=20in=20Odoo=2019?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Caught during entech deploy of the Phase 2 auto-pause cron. Odoo 19 ir.cron no longer accepts numbercall or doall fields; the load fails with: ValueError: Invalid field 'numbercall' in 'ir.cron' Removed both from ir_cron_autopause_stale_steps. The other crons in the same file (nudge stale paused / in_progress) already used the minimal field set — matching that pattern now. Also added a CLAUDE.md section so future-Claude doesn't reintroduce the speculative fields. Co-Authored-By: Claude Opus 4.7 (1M context) --- fusion_plating/CLAUDE.md | 7 +++++++ fusion_plating/fusion_plating_jobs/data/fp_cron_data.xml | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/fusion_plating/CLAUDE.md b/fusion_plating/CLAUDE.md index 7a2eee7e..222c5533 100644 --- a/fusion_plating/CLAUDE.md +++ b/fusion_plating/CLAUDE.md @@ -166,6 +166,13 @@ These modules have **source code in this repo** but are **intentionally NOT inst | `fusion_plating_culture` | `state=uninstalled`, dir removed from entech disk | Soft people-ops feature (peer kudos / "Fundamental of the Week"); zero data entered; not a client priority. Top-level "Culture" menu confused operators. | Ask the client whether they want it before reinstalling. If yes: re-sync folder + `-i fusion_plating_culture` + seed a value set. | | `fusion_plating_sensors` | deleted entirely (not in repo anymore) | Duplicated `fusion_plating_iot`'s scope but with no working alerting logic. Its valuables (sensor_type taxonomy, dashboard, location flexibility) were ported into `fusion_iot/fusion_plating_iot/`. | N/A — gone. Any new sensor work goes in `fusion_iot/fusion_plating_iot/`. | +## Odoo 19 ir.cron — `numbercall` and `doall` are gone +The legacy `numbercall=-1` (run-forever) and `doall=False` (catch-up-missed) fields were removed from `ir.cron` in Odoo 19. Including them in `` data XML produces: +``` +ValueError: Invalid field 'numbercall' in 'ir.cron' +``` +Use only: `name`, `model_id`, `state`, `code` (or `function`/`model`), `interval_number`, `interval_type`, `active`. Caught during the 2026-05-22 entech deploy of the auto-pause cron. + ## Critical Rules — Odoo 19 1. **NEVER code from memory** — Read reference files from the server first. 2. **Backend OWL**: `static template`, `static props = ["*"]`, standalone `rpc()` from `@web/core/network/rpc`. NOT `useService("rpc")`. diff --git a/fusion_plating/fusion_plating_jobs/data/fp_cron_data.xml b/fusion_plating/fusion_plating_jobs/data/fp_cron_data.xml index 348f4ae0..b8b36c7a 100644 --- a/fusion_plating/fusion_plating_jobs/data/fp_cron_data.xml +++ b/fusion_plating/fusion_plating_jobs/data/fp_cron_data.xml @@ -44,8 +44,6 @@ model._cron_autopause_stale_steps() 30 minutes - -1 -