Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Stock Receipts Excess stock rerouting

by
Open Source Integrators S de RL de CV, Samuel Macias Oropeza
- 18/07/2025 17:54:45
Hello!

We have the following scenario:

A  warehouse in Odoo 17 has multiple locations where a product can go, a main one and then secondary locations.

Locations have a physical limit as to how much stock of the product they can have.

We want Odoo to behave the following way:

Let's say product INCOMING can go to either WH/Stock/Main or WH/Stock/Secondary, with the first location being the preferred one. Both Main and Secondary have a max capacity of 20 units of product INCOMING.

We have a pending receipt of 30 units of product INCOMING. We'd like for the system to create first a stock.move.line for 20 Units into WH/Stock/Main, and a second stock.move.line for the remaining 10 units into WH/Stock/Secondary. 

We explored using Enterprise's storage categories for this, but they don't behave at all like we need them to. In the scenario described above, since 30 is larger than 20, then the putaway rules with the assigned storage category gets ignored outright.

Any recommendations on how to achieve the desired behavior?

Thanks!