From b4dfdfc94d6767134c9882ef3181d5e4b6da51af Mon Sep 17 00:00:00 2001 From: Phillip Heller Date: Tue, 31 Aug 2010 02:04:33 -0400 Subject: [PATCH] Fix for issue1663 - add missing ids arg to function signatures --- work.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/work.py b/work.py index 61a9a2f291..13f8b1cb0f 100644 --- a/work.py +++ b/work.py @@ -66,7 +66,7 @@ class Work(ModelSQL, ModelView): to_compute[h] = False return res - def get_hours(self, name): + def get_hours(self, ids, name): all_ids = self.search([ ('parent', 'child_of', ids), ]) @@ -98,7 +98,7 @@ class Work(ModelSQL, ModelView): self._tree_qty(hours_by_wt, children, ids, to_compute) return hours_by_wt - def get_rec_name(self, name): + def get_rec_name(self, ids, name): if not ids: return {} res = {}