[IMP]improve breadcrumb for invoice and draft
bzr revid: sgo@tinyerp.com-20120911103732-vwvs8ieiwx083qft
This commit is contained in:
parent
d0bc4d9ffc
commit
c35e58fbf8
|
@ -1095,10 +1095,10 @@ class account_invoice(osv.osv):
|
||||||
if not ids:
|
if not ids:
|
||||||
return []
|
return []
|
||||||
types = {
|
types = {
|
||||||
'out_invoice': 'CI: ',
|
'out_invoice': 'Draft Invoice',
|
||||||
'in_invoice': 'SI: ',
|
'in_invoice': 'Draft Invoice ',
|
||||||
'out_refund': 'OR: ',
|
'out_refund': 'Draft Refund ',
|
||||||
'in_refund': 'SR: ',
|
'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')]
|
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')]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue