From e4a7c8ac9cd92248f79d97c418aecf59ef8650e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 13 Mar 2017 22:58:34 +0100 Subject: [PATCH] Show effort and progression also on project issue6345 review30141002 --- work.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/work.py b/work.py index 522df2c0d9..7363e23547 100644 --- a/work.py +++ b/work.py @@ -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),