Don't update expected quantity when inventory is done

issue5749
review21171002
This commit is contained in:
Sergi Almacellas Abellana committed 2016-07-28 10:12:16 +02:00
1 parent ed4a54c644
commit 33ca111eb7
1 file changed
+3
+3
View File
@@ -205,6 +205,9 @@ class Inventory(Workflow, ModelSQL, ModelView):
grouping = cls.grouping()
to_create, to_write = [], []
for inventory in inventories:
# Once done computation is wrong because include created moves
if inventory.state == 'done':
continue
# Compute product quantities
if fill:
product_ids = None