Do not rely on assigned quantity to supply on stock first
Closes #13279
This commit is contained in:
@@ -38,6 +38,7 @@ class Sale(metaclass=PoolMeta):
|
||||
locations = [warehouse.id]
|
||||
with Transaction().set_context(
|
||||
company=company.id, locations=locations,
|
||||
stock_assign=True,
|
||||
stock_date_end=None):
|
||||
product_quantities.update(
|
||||
(p, p.forecast_quantity)
|
||||
|
||||
Reference in New Issue
Block a user