From 0b63703aa0b3e30521c0f842a35ea34ff96644c4 Mon Sep 17 00:00:00 2001 From: "olt@tinyerp.com" <> Date: Thu, 15 Dec 2011 11:48:48 +0100 Subject: [PATCH] [FIX] revert r3552 (opw 51206) bzr revid: olt@tinyerp.com-20111215104848-u9lkuku3nk2v11bq --- bin/osv/orm.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 86ce081..4d7cc18 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -723,10 +723,7 @@ class orm_template(object): if mode=='.id': id = int(id) obj_model = self.pool.get(model_name) - if obj_model._columns.get('active'): - ids = obj_model.search(cr, uid, [('id', '=', int(id)),('active','in',['True','False'])], context=context) - else: - ids = obj_model.search(cr, uid, [('id', '=', int(id))], context=context) + ids = obj_model.search(cr, uid, [('id', '=', int(id)),('active','in',['True','False'])], context=context) if not len(ids): raise Exception(_("Database ID doesn't exist: %s : %s") %(model_name, id)) elif mode=='id': -- 1.7.10.4