diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 39690f449b5..c6138013a6d 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -2187,12 +2187,7 @@ class orm(orm_template): # if the object has a field named 'active', filter out all inactive # records unless they were explicitely asked for if 'active' in self._columns and (active_test and context.get('active_test', True)): - i = 0 - active_found = False - while i