mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_request: Change to free_qty field to use stock
We need to use the free_qty field because it is the one that has the correct value if for example we have stock reservations. TT43413
This commit is contained in:
@@ -404,7 +404,7 @@ class StockRequest(models.Model):
|
||||
float_compare(
|
||||
request.product_id.sudo()
|
||||
.with_context(location=request.location_id.id)
|
||||
.qty_available,
|
||||
.free_qty,
|
||||
request.product_uom_qty,
|
||||
precision_digits=precision,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user