[FIX] fix problem of variable name.
bzr revid: ysa@tinyerp.com-20110601094908-9o24f6ohms7fx6p9
This commit is contained in:
parent
6d1753a734
commit
522b77fdfa
|
@ -92,7 +92,7 @@ class object_proxy(netsvc.Service):
|
|||
ids = args[3]
|
||||
else:
|
||||
ids = []
|
||||
cr = sql_db.db_connect(db_name).cursor()
|
||||
cr = sql_db.db_connect(dbname).cursor()
|
||||
return src(obj, cr, uid, ids, context=(ctx or {}))
|
||||
except Exception:
|
||||
pass
|
||||
|
@ -103,7 +103,7 @@ class object_proxy(netsvc.Service):
|
|||
# be returned, it is the best we have.
|
||||
|
||||
try:
|
||||
cr = sql_db.db_connect(db_name).cursor()
|
||||
cr = sql_db.db_connect(dbname).cursor()
|
||||
res = translate(cr, name=False, source_type=ttype,
|
||||
lang=lang, source=src)
|
||||
if res:
|
||||
|
|
Loading…
Reference in New Issue