| models | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| .gitignore | ||
| README.md | ||
Stock Picking Type M2M
This module extends the standard Odoo 19 Inventory functionality to support multiple default source locations for Operation Types.
Features
- Many2many Source Locations: Adds
default_location_src_idstostock.picking.type. - Backward Compatibility: Maintains the standard
default_location_src_idMany2one field, automatically synchronizing it with the first selection in the Many2many list. - Auto-Pick Context Propagation: Overrides
stock.moveto ensure that the reservation engine has access to the allowed source locations during auto-pick operations.
Technical Details
- Inherited Models:
stock.picking.type,stock.move. - Field Synchronization: A compute method ensures that
default_location_src_idstays in sync withdefault_location_src_idsto prevent errors in standard Odoo code that expects a single value.