New product types: Goods, Assets and Service
review260001
This commit is contained in:
1 parent
935103de7b
commit
6ffab824fe
1 file changed
+1
-1
+1
-1
@@ -628,7 +628,7 @@ class Purchase(ModelWorkflow, ModelSQL, ModelView):
|
||||
for line in purchase.lines:
|
||||
if (not line.to_location
|
||||
and line.product
|
||||
and line.product.type in ('stockable', 'consumable')):
|
||||
and line.product.type in ('goods', 'assets')):
|
||||
self.raise_user_error('warehouse_required')
|
||||
return True
|
||||
|
||||
|
||||
Reference in new issue
Block a user