993 B
993 B
v4928.1.5.62 — Task Schema Hotfix
This release fixes a production regression introduced by the v1.5.61 task fiscal inheritance change.
Root cause
Production schema stores the fiscal customer link on opportunities as local_customer_id. The task detail query tried to read o.fiscal_customer_id, which does not exist in the production database, causing HTTP 500 on task detail pages.
Changes
app/task_service.py- joins customers through
o.local_customer_idonly; - exposes
opportunity_fiscal_customer_idas an alias oflocal_customer_idfor compatibility with UI code.
- joins customers through
app/opportunity_next_action_service.py- maps
local_customer_idto the workflow engine's internalfiscal_customer_idalias; - uses production customer columns (
street_name,postal_zone,city_name) with normalized aliases for the engine.
- maps
- Adds static regression tests to prevent reintroducing non-existing
opportunities.fiscal_customer_idSQL.
Validation
346 passed