Use explicit list of product types for stock move

issue10225
review361481002
This commit is contained in:
Cédric Krier committed 2021-04-03 23:30:21 +02:00
1 parent dd9c11053b
commit 6a2a164d37
1 file changed
+1 -1
+1 -1
View File
@@ -1583,7 +1583,7 @@ class SaleLine(TaxableMixin, 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 (shipment_type == 'out') != (self.quantity >= 0):