[FIX] make the breadcrump string translatable

bzr revid: ado@tinyerp.com-20130228070311-zbhx3bcpqo6cgfx0
This commit is contained in:
Amit Dodiya 2013-02-28 12:33:11 +05:30
parent be867174aa
commit 3d0a4e0c3d
2 changed files with 28 additions and 4 deletions

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')]

View File

@ -52,6 +52,30 @@ msgstr ""
msgid "Residual"
msgstr ""
#. module: account
#: code:addons/account/account_invoice.py:1133
#, python-format
msgid "Invoice "
msgstr ""
#. module: account
#: code:addons/account/account_invoice.py:1134
#, python-format
msgid "Sup. Invoice "
msgstr ""
#. module: account
#: code:addons/account/account_invoice.py:11345
#, python-format
msgid "Refund "
msgstr ""
#. module: account
#: code:addons/account/account_invoice.py:1136
#, python-format
msgid "Supplier Refund "
msgstr ""
#. module: account
#: code:addons/account/account_bank_statement.py:368
#, python-format