Sergi Almacellas Abellana pushed to branch branch/default at Tryton / Tryton
Commits:
5282d032 by Sergi Almacellas Abellana at 2023-03-09T13:37:12+01:00
Use inventory company to complete lines
Closes #12127
- - - - -
1 changed file:
- modules/stock/inventory.py
Changes:
=====================================
modules/stock/inventory.py
=====================================
@@ -256,7 +256,9 @@
if inventory.state == 'done':
continue
# Compute product quantities
- with Transaction().set_context(stock_date_end=inventory.date):
+ with Transaction().set_context(
+ company=inventory.company.id,
+ stock_date_end=inventory.date):
if fill:
pbl = Product.products_by_location(
[inventory.location.id],
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/5282d0322326c6abe1b98cb1dee1565064257e4f
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/5282d0322326c6abe1b98cb1dee1565064257e4f
You're receiving this email because of your account on foss.heptapod.net.