Skip to content
Snippets Groups Projects
Commit 46245ea0 authored by Adrien Widart's avatar Adrien Widart
Browse files

[FIX] stock: set partner for inter-warehouse transfers


The inter-warehouse transfers do not have any partner defined.

To reproduce the issue:
(Let WH01 be the default warehouse)
1. In Settings, enable:
    - Multi-Warehouses
    - Multi-Step Routes
2. Create a second warehouse WH02
3. On WH2, enable "Resupply From WH01"
4. Create a product P:
    - Storable
    - Routes:
        - WH02: Supply Product from WH01
    - Reordering rules:
        - Min = Max = 1
        - Warehouse: WH02
        - Location: WH02/Stock
5. Update the quantity of P:
    - 1 x P in WH01/Stock
6. Run the scheduler
7. Open the generated pickings for P

Error: None of the picking has a `partner_id` ("Receive From"/"Delivery
Address")

Partial backport of af13e766

OPW-2779150

closes odoo/odoo#86998

X-original-commit: d67ec8d1
Signed-off-by: default avatarSteve Van Essche <svs@odoo.com>
Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
Co-authored-by: default avataryhu-odoo <yhu@odoo.com>
parent 06eb4a69
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment