[IMP]: improved name_get in res_partner_bank
bzr revid: han@tinyerp.com-20110803121348-dnw6l8ikfcw25cv8
This commit is contained in:
@@ -452,10 +452,9 @@ class res_partner_bank(osv.osv):
|
||||
if not len(ids):
|
||||
return []
|
||||
res = []
|
||||
for id in self.browse(cr, uid, ids):
|
||||
res.append((id.id,id.acc_number))
|
||||
for val in self.browse(cr, uid, ids):
|
||||
res.append((val.id, (val.bank.code)+': '+(val.acc_number[:3])+'-'+(val.acc_number[3:10])+'-'+(val.acc_number[10:12])))
|
||||
return res
|
||||
|
||||
res_partner_bank()
|
||||
|
||||
class res_partner_category(osv.osv):
|
||||
|
||||
Reference in New Issue
Block a user