open_workshop/open_workshop/security/ir.model.access.csv
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

725 B

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_ows_machine_access_userows.machine.accessmodel_ows_machine_accessbase.group_user1111
3access_ows_machine_userows.machinemodel_ows_machinebase.group_user1111
4access_ows_machine_product_userows.machine.productmodel_ows_machine_productbase.group_user1111
5access_ows_machine_training_useraccess_ows_machine_training_usermodel_ows_machine_trainingbase.group_user1111
6access_ows_machine_areaows.machine.areamodel_ows_machine_areabase.group_user1111
7access_ows_userows.usermodel_ows_userbase.group_user1111
8access_ows_machine_trainingows.machine.trainingmodel_ows_machine_trainingbase.group_user1111