New product types: Goods, Assets and Service

review260001
This commit is contained in:
Cédric Krier committed 2012-03-16 12:41:54 +01:00
1 parent 935103de7b
commit 6ffab824fe
1 file changed
+1 -1
+1 -1
View File
@@ -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