diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 2fbb2428731..97035a08abc 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -1244,7 +1244,6 @@ class orm(object): 'relate': resrelate } - print result return result # TODO: ameliorer avec NULL @@ -1307,16 +1306,20 @@ class orm(object): return (qu1,qu2) def search(self, cr, user, args, offset=0, limit=None, order=None): - # if the object has a field named 'active', filter out all inactive + # if the object has a field named 'active', filter out all inactive # records unless they were explicitely asked for if 'active' in self._columns: - ok = False - for a in args: - if a[0]=='active': - ok = True - if not ok: + i = 0 + while i