[IMP] Account:Improve name_get for invoice
bzr revid: ara@tinyerp.com-20101110113632-krw1sokifj1aem41
This commit is contained in:
parent
380f403d0e
commit
9097750b72
|
@ -1063,7 +1063,7 @@ class account_invoice(osv.osv):
|
|||
'out_refund': 'OR: ',
|
||||
'in_refund': 'SR: ',
|
||||
}
|
||||
return [(r['id'], types[r['type']]+(r['number'] or '')+' '+(r['name'] or '')) for r in self.read(cr, uid, ids, ['type', 'number', 'name'], context, load='_classic_write')]
|
||||
return [(r['id'], (r['number']) or types[r['type']]+(r['name'] or '')) for r in self.read(cr, uid, ids, ['type', 'number', 'name'], context, load='_classic_write')]
|
||||
|
||||
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100):
|
||||
if not args:
|
||||
|
|
Loading…
Reference in New Issue