[FIX] account: act link was not working once invoice created
bzr revid: psi@tinyerp.co.in-20101007130924-m6ebhnq094lsqmeh
This commit is contained in:
parent
766b70051f
commit
572a9905eb
|
@ -1043,6 +1043,8 @@ class account_move(osv.osv):
|
||||||
return self.name_get(cr, user, ids, context=context)
|
return self.name_get(cr, user, ids, context=context)
|
||||||
|
|
||||||
def name_get(self, cursor, user, ids, context=None):
|
def name_get(self, cursor, user, ids, context=None):
|
||||||
|
if isinstance(ids, (int, long)):
|
||||||
|
ids = [ids]
|
||||||
if not len(ids):
|
if not len(ids):
|
||||||
return []
|
return []
|
||||||
res = []
|
res = []
|
||||||
|
@ -1592,6 +1594,8 @@ class account_tax_code(osv.osv):
|
||||||
|
|
||||||
|
|
||||||
def name_get(self, cr, uid, ids, context=None):
|
def name_get(self, cr, uid, ids, context=None):
|
||||||
|
if isinstance(ids, (int, long)):
|
||||||
|
ids = [ids]
|
||||||
if not len(ids):
|
if not len(ids):
|
||||||
return []
|
return []
|
||||||
if isinstance(ids, (int, long)):
|
if isinstance(ids, (int, long)):
|
||||||
|
|
Loading…
Reference in New Issue