improvement

bzr revid: fp@tinyerp.com-20081124071205-akhhww4czqvx1bhs
This commit is contained in:
Fabien Pinckaers
2008-11-24 08:12:05 +01:00
parent 4eda86590c
commit 7e64b850d0
-1
View File
@@ -719,7 +719,6 @@ class related(function):
# TODO: call field_get on the object, not in the DB
def _field_get(self, cr, uid, obj, model_name, prop):
print model_name, prop
fields = obj.pool.get(model_name).fields_get(cr, uid,)
if fields.get(prop, False):
return(fields[prop].get('relation', False), fields[prop].get('type', False), fields)