From 3c3a3835bc7cc31d3f757bf553ffa5b2ca483865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 3 Apr 2021 23:30:21 +0200 Subject: [PATCH] Use explicit list of product types for stock move issue10225 review361481002 --- purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchase.py b/purchase.py index 24bd6d3309..2b869be082 100644 --- a/purchase.py +++ b/purchase.py @@ -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'):