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
(transplanted from ce55336d85d1d81e1117ace09f851edbac98f228)
This commit is contained in:
Cédric Krier committed 2014-01-26 22:15:20 +01:00
1 parent 0f5c10e6e9
commit e7ba28dbf7
1 file changed
+1 -1
+1 -1
View File
@@ -68,7 +68,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)