open_workshop/open_workshop
matthias.lotz 8fb58c744e feat: Migrate to maintenance.equipment with automated OpenUpgrade workflow
- Integrated maintenance.equipment using _inherits pattern in open_workshop_base
- Removed duplicate fields (code, description, storage_location, purchase_price, purchase_date)
- Delegated equipment management to OCA maintenance module
- Added Smart Button UI pattern for equipment details
- Implemented automated migration workflow:
  * SQL script renames module open_workshop → open_workshop_base
  * Pre-migration: Installs maintenance, adds equipment_id column
  * Post-migration: Migrates 23 machines with proper JSONB names and locations
- Restored old open_workshop module (installable=False) for DB compatibility
- Updated CI/CD workflow with migration steps
- Area mapping corrected: area.name → equipment.location
- JSONB handling: Using SQL jsonb_build_object() for proper storage
- Serial numbers: From old code field or generated as OWS-{id}

Tested and verified:
 23 machines successfully migrated
 JSONB names extractable: name->>'de_DE' and name->>'en_US'
 Locations correctly mapped: Fablab, Holzbereich, etc.
 equipment_id linkage functional
2025-12-07 21:09:35 +01:00
..
controllers feat: Migrate to maintenance.equipment with automated OpenUpgrade workflow 2025-12-07 21:09:35 +01:00
data feat: Migrate to maintenance.equipment with automated OpenUpgrade workflow 2025-12-07 21:09:35 +01:00
models feat: Migrate to maintenance.equipment with automated OpenUpgrade workflow 2025-12-07 21:09:35 +01:00
security feat: Migrate to maintenance.equipment with automated OpenUpgrade workflow 2025-12-07 21:09:35 +01:00
static/src feat: Migrate to maintenance.equipment with automated OpenUpgrade workflow 2025-12-07 21:09:35 +01:00
views feat: Migrate to maintenance.equipment with automated OpenUpgrade workflow 2025-12-07 21:09:35 +01:00
__init__.py feat: Migrate to maintenance.equipment with automated OpenUpgrade workflow 2025-12-07 21:09:35 +01:00
__manifest__.py feat: Migrate to maintenance.equipment with automated OpenUpgrade workflow 2025-12-07 21:09:35 +01:00