Go to file
2026-03-10 11:50:06 +07:00
models feat: Add picking type to stock moves and enhance picking type and allowed source location inheritance for move lines, including production contexts. 2026-03-10 11:50:06 +07:00
views first commit 2026-02-13 14:36:29 +07:00
__init__.py first commit 2026-02-13 14:36:29 +07:00
__manifest__.py first commit 2026-02-13 14:36:29 +07:00
.gitignore first commit 2026-02-13 14:36:29 +07:00
README.md first commit 2026-02-13 14:36:29 +07:00

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_ids to stock.picking.type.
  • Backward Compatibility: Maintains the standard default_location_src_id Many2one field, automatically synchronizing it with the first selection in the Many2many list.
  • Auto-Pick Context Propagation: Overrides stock.move to 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_id stays in sync with default_location_src_ids to prevent errors in standard Odoo code that expects a single value.