Commit Graph

1 Commits

Author SHA1 Message Date
Luis Ernesto Portillo Zaldivar
a9ed1a23bd feat(#32): Add automatic sample generation - Task 1 completed
- Added generated_sample_ids field to sale.order model
- Override action_confirm() to intercept lab order confirmation
- Implemented _generate_lab_samples() main logic method
- Implemented _group_analyses_by_sample_type() for grouping
- Implemented _create_sample_for_group() for sample creation
- Added necessary fields to stock.lot model (doctor_id, origin, volume_ml, analysis_names)
- Updated state field to include 'pending_collection' state
- Added proper error handling and user notifications via message_post
- Successful test with ephemeral instance restart
2025-07-14 22:29:29 -06:00