Only check if expected_quantity has changed

Since rev 7166c43434f7, the quantity field is no more filled.

issue8433
review285371002
This commit is contained in:
Àngel Àlvarez committed 2019-09-02 18:26:02 +02:00
1 parent 2429ddadea
commit e8b713a3d1
1 file changed
+1 -1
+1 -1
View File
@@ -460,7 +460,7 @@ class InventoryLine(ModelSQL, ModelView):
'''
values = {}
# if nothing changed, no update
if self.quantity == self.expected_quantity == quantity:
if self.expected_quantity == quantity:
return values
values['expected_quantity'] = quantity
return values