diff options
| author | hda@tinyerp.com <> | 2008-09-03 12:51:15 +0530 |
|---|---|---|
| committer | hda@tinyerp.com <> | 2008-09-03 12:51:15 +0530 |
| commit | 3dcc8819e51bf824e7ea19479129c2fb411e751f (patch) | |
| tree | 72585cffabfbe219837c703f08ce596ca4197b10 | |
| parent | 2b8dc94f9cd0b1454c078da7e74b991d9379bc45 (diff) | |
bugfix for float division error
bzr revid: hda@tinyerp.com-20080903072115-makv4bthxx4t7tcu
| -rw-r--r-- | addons/project/project.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/project/project.py b/addons/project/project.py index e0177fbb467..1ea69a12010 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -97,7 +97,10 @@ class project(osv.osv): for project in self.browse(cursor, user, ids, context=context): tot = 0.0 if project.state not in ('cancelled'): - tot += project.effective_hours * 100.0 / project.planned_hours + try: + tot += project.effective_hours * 100.0 / project.planned_hours + except: + pass res[project.id] = tot return res |
