- 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) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| ows_models.py | ||
| pos_order.py | ||