Use work effort instead of total to compute revenue

total_effort contains the effort of the children but sum_tree needs only the
value of the work without the children.

review2931003
This commit is contained in:
Cédric Krier committed 2014-01-26 22:15:20 +01:00
1 parent 1b19cb71e3
commit dae0106a1b
1 file changed
+1 -1
+1 -1
View File
@@ -94,7 +94,7 @@ class Work:
def getter(work):
if work.list_price:
return work.list_price * Decimal(str(work.total_effort))
return work.list_price * Decimal(str(work.effort))
else:
return Decimal(0)