Define effort_hours on Work in project instead of project_invoice

effort_duration is defined in project module so effort_hours should also.

issue4937
This commit is contained in:
Cédric Krier committed 2015-08-27 12:28:44 +02:00
1 parent e8f0ab86c0
commit 040efcabb9
1 file changed
-6
-6
View File
@@ -99,12 +99,6 @@ class Work:
else:
return 'manual'
@property
def effort_hours(self):
if not self.effort_duration:
return 0
return self.effort_duration.total_seconds() / 60 / 60
@staticmethod
def default_invoiced_duration():
return datetime.timedelta()