Show effort and progression also on project

issue6345
review30141002
This commit is contained in:
Cédric Krier
2017-03-13 22:58:34 +01:00
parent 12cb56ecc6
commit e4a7c8ac9c
+1 -7
View File
@@ -58,9 +58,7 @@ class Work(sequence_ordered(), ModelSQL, ModelView):
help="Total time spent on this work and the sub-works"),
'get_total')
effort_duration = fields.TimeDelta('Effort', 'company_work_time',
states={
'invisible': Eval('type') != 'task',
}, depends=['type'], help="Estimated Effort for this work")
help="Estimated Effort for this work")
total_effort = fields.Function(fields.TimeDelta('Total Effort',
'company_work_time',
help="Estimated total effort for this work and the sub-works"),
@@ -73,10 +71,6 @@ class Work(sequence_ordered(), ModelSQL, ModelView):
('progress', '<=', 1),
],
],
states={
'invisible': Eval('type') != 'task',
},
depends=['type'],
help='Estimated progress for this work')
total_progress = fields.Function(fields.Float('Total Progress',
digits=(16, 4),