mirror of
https://gitlab.com/datalifeit/trytond-stock_location_product_limit
synced 2023-12-14 04:23:00 +01:00
Calculate get_quantity from quantity instead of forecast_quantity.
This commit refs #24897
This commit is contained in:
parent
a8e5ea7d37
commit
dc22a4df3e
|
@ -85,7 +85,7 @@ class ProductLimit(ModelSQL, ModelView):
|
|||
product_ids = [l.product.id for l in products_with_limit]
|
||||
products = Product.browse(product_ids)
|
||||
with Transaction().set_context(context):
|
||||
products = Product.get_quantity(products, 'forecast_quantity')
|
||||
products = Product.get_quantity(products, 'quantity')
|
||||
p_forecast = {k: value for k, value in products.items()
|
||||
if value}
|
||||
|
||||
|
|
Loading…
Reference in a new issue