bzr revid: fp@tinyerp.com-20081231160610-ydfzi3z96v47uynj
This commit is contained in:
Fabien Pinckaers 2008-12-31 17:06:10 +01:00
parent e02cea2104
commit 81bdf50889
2 changed files with 2 additions and 1 deletions

View File

@ -713,6 +713,7 @@ class related(function):
else:
t_data = t_data[self.arg[i]]
if type(t_data) == type(objlst[0]):
# This should be improved, calling name_get
res[data.id] = (t_data.id,t_data.name)
else:
res[data.id] = t_data

View File

@ -552,7 +552,7 @@ class cache(object):
cache.__caches.append(self)
@classmethod
@classmethod
def clean_cache_for_db(cls, dbname):
def get_dbname_from_key(key):
for e in key: