Use explicit list of product types for stock move

issue10225
review361481002
This commit is contained in:
Cédric Krier
2021-04-03 23:30:21 +02:00
parent abbe1bdeb7
commit 3c3a3835bc
+1 -1
View File
@@ -1619,7 +1619,7 @@ class Line(sequence_ordered(), ModelSQL, ModelView):
return
if not self.product:
return
if self.product.type == 'service':
if self.product.type not in Move.get_product_types():
return
if (self.quantity >= 0) != (move_type == 'in'):