Use inventory company to complete lines
Closes #12127 (grafted from 5282d0322326c6abe1b98cb1dee1565064257e4f) --HG-- branch : 6.0
This commit is contained in:
1 parent
2848f27e83
commit
4d10f95ebc
1 file changed
+3
-1
@@ -263,7 +263,9 @@ class Inventory(Workflow, ModelSQL, ModelView):
|
||||
product_ids = None
|
||||
else:
|
||||
product_ids = [l.product.id for l in inventory.lines]
|
||||
with Transaction().set_context(stock_date_end=inventory.date):
|
||||
with Transaction().set_context(
|
||||
company=inventory.company.id,
|
||||
stock_date_end=inventory.date):
|
||||
pbl = Product.products_by_location(
|
||||
[inventory.location.id],
|
||||
grouping=grouping,
|
||||
|
||||
Reference in new issue
Block a user