[IMP]improve breadcrumb for invoice and draft

bzr revid: sgo@tinyerp.com-20120911103732-vwvs8ieiwx083qft
This commit is contained in:
Sanjay Gohel (Open ERP) 2012-09-11 16:07:32 +05:30
parent d0bc4d9ffc
commit c35e58fbf8
1 changed files with 4 additions and 4 deletions

View File

@ -1095,10 +1095,10 @@ class account_invoice(osv.osv):
if not ids:
return []
types = {
'out_invoice': 'CI: ',
'in_invoice': 'SI: ',
'out_refund': 'OR: ',
'in_refund': 'SR: ',
'out_invoice': 'Draft Invoice',
'in_invoice': 'Draft Invoice ',
'out_refund': 'Draft Refund ',
'in_refund': 'Draft Refund',
}
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')]