list_price is not always filled

This commit is contained in:
Cédric Krier committed 2012-03-30 19:20:18 +02:00
1 parent a10fdedae4
commit 53929cceec
1 file changed
+1 -1
+1 -1
View File
@@ -103,7 +103,7 @@ class Work(ModelSQL, ModelView):
if not work.children:
leafs.add(work.id)
if work.type == 'task':
if work.type == 'task' and work.list_price:
res[work.id] = work.list_price * Decimal(str(work.total_effort))
else:
res[work.id] = Decimal('0')