Use explicit list of product types for stock move
issue10225 review361481002
This commit is contained in:
+1
-1
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user