-
- Downloads
[FIX] purchase_stock : prevent wrong destination in PO
Steps to reproduce the bug: - create 2 warehouses A & B - create a new product and add a seller - Create an Automated replenishment order of the created product for warehouse A - click on “Automate orders” - open PO - in “other information” tab > change the picking type to the “warehouse B” picking type - confirm order - click on the receipt Problem: The destination location is “Warehouse A” instead of “Warehouse B” The problem also appears after the duplication. Solution: Use the parent_path to check if the location that the user wants to use is below the original warehouse. opw-2588082 closes odoo/odoo#75306 Signed-off-by:William Henrotin <Whenrow@users.noreply.github.com> Co-authored-by:
fmdl <florent.mirieu@gmail.com>
Showing
- addons/purchase_stock/i18n/purchase_stock.pot 9 additions, 0 deletionsaddons/purchase_stock/i18n/purchase_stock.pot
- addons/purchase_stock/models/purchase.py 8 additions, 1 deletionaddons/purchase_stock/models/purchase.py
- addons/purchase_stock/tests/test_reordering_rule.py 9 additions, 1 deletionaddons/purchase_stock/tests/test_reordering_rule.py
Loading
Please register or sign in to comment