[FIX] make the breadcrump string translatable

bzr revid: ado@tinyerp.com-20130228071656-b7x1853ygpc7ks5m
This commit is contained in:
Amit Dodiya
2013-02-28 12:46:56 +05:30
+4 -4
View File
@@ -1130,10 +1130,10 @@ class account_invoice(osv.osv):
if not ids:
return []
types = {
'out_invoice': 'Invoice ',
'in_invoice': 'Sup. Invoice ',
'out_refund': 'Refund ',
'in_refund': 'Supplier Refund ',
'out_invoice': _('Invoice '),
'in_invoice': _('Sup. Invoice '),
'out_refund': _('Refund '),
'in_refund': _('Supplier 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')]