open_workshop/open_workshop_base/models
matthias.lotz 8ae586cca6 feat: Auto-create ows.machine on equipment import/create
- Add @api.model_create_multi hook to MaintenanceEquipment.create()
- Add load() override to handle Excel/CSV import correctly
- Add _create_missing_ows_machines() helper with recursion prevention
- Modify OwsMachine.create() to only create equipment if equipment_id not provided
- Use context flag 'skip_ows_machine_creation' to prevent infinite recursion
- Fixes: Equipment import now auto-creates ows.machine and displays OWS tab
- Migration tested: Compatible with SQL-based post-migration (23/23 machines migrated)
2025-12-19 20:12:54 +01:00
..
__init__.py Migration: open_workshop → open_workshop_base 2025-12-07 15:45:03 +01:00
ows_models.py feat: Auto-create ows.machine on equipment import/create 2025-12-19 20:12:54 +01:00
pos_order.py Migration: open_workshop → open_workshop_base 2025-12-07 15:45:03 +01:00