From 040efcabb9810975221dd73a1533d40b6ea36153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 27 Aug 2015 12:28:44 +0200 Subject: [PATCH] Define effort_hours on Work in project instead of project_invoice effort_duration is defined in project module so effort_hours should also. issue4937 --- work.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/work.py b/work.py index b6684ab531..2d097f62e2 100644 --- a/work.py +++ b/work.py @@ -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()