-
- Downloads
[FIX] sale_stock, stock_dropshipping: ordered qty
- Set a vendor on Product A - Create a SO with 1 Unit of A, set the Drop Ship route - Confirm the SO => a PO with 1 Unit is created - Change the oredered quantity to 2 The PO is updated with a total quantity of 3 instead of 2. Since the removal of procurements, the quantity is computed based on the stock moves. However, in this case, no stock move has been created since the PO is not yet confirmed. In this specific case, we fall back on the PO line quantity. The logic is similar to `_quantity_in_progress`. opw-1879118
Showing
- addons/sale_stock/models/sale_order.py 8 additions, 3 deletionsaddons/sale_stock/models/sale_order.py
- addons/stock_dropshipping/models/__init__.py 2 additions, 1 deletionaddons/stock_dropshipping/models/__init__.py
- addons/stock_dropshipping/models/sale.py 21 additions, 0 deletionsaddons/stock_dropshipping/models/sale.py
- addons/stock_dropshipping/tests/__init__.py 1 addition, 1 deletionaddons/stock_dropshipping/tests/__init__.py
- addons/stock_dropshipping/tests/test_dropship.py 45 additions, 0 deletionsaddons/stock_dropshipping/tests/test_dropship.py
addons/stock_dropshipping/models/sale.py
0 → 100644
Please register or sign in to comment