From 6ffab824fe091bf34a4ca90f819e4b3548582e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 16 Mar 2012 12:41:54 +0100 Subject: [PATCH] New product types: Goods, Assets and Service review260001 --- purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchase.py b/purchase.py index 74634ed740..ab41a20c50 100644 --- a/purchase.py +++ b/purchase.py @@ -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