[FIX] l10n_be_invoice_bba: add translated label

Closes #15245
This commit is contained in:
Zakaria Makrelouf
2017-01-27 12:41:29 +01:00
committed by Martin Trigaux
parent 0c76ff4846
commit b3cd386fca
2 changed files with 19 additions and 6 deletions
@@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0\n"
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-07 14:56+0000\n"
"PO-Revision-Date: 2015-09-07 14:56+0000\n"
"POT-Creation-Date: 2017-01-27 11:40+0000\n"
"PO-Revision-Date: 2017-01-27 11:40+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,6 +15,12 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: l10n_be_invoice_bba
#: code:addons/l10n_be_invoice_bba/invoice.py:29
#, python-format
msgid "BBA Structured Communication"
msgstr ""
#. module: l10n_be_invoice_bba
#: model:ir.model.fields,field_description:l10n_be_invoice_bba.field_res_partner_out_inv_comm_algorithm
msgid "Communication Algorithm"
@@ -36,12 +42,18 @@ msgid "Date"
msgstr ""
#. module: l10n_be_invoice_bba
#: code:addons/l10n_be_invoice_bba/invoice.py:149
#: code:addons/l10n_be_invoice_bba/invoice.py:150
#, python-format
msgid "Empty BBA Structured Communication!\n"
"Please fill in a unique BBA Structured Communication."
msgstr ""
#. module: l10n_be_invoice_bba
#: code:addons/l10n_be_invoice_bba/invoice.py:28
#, python-format
msgid "Free Communication"
msgstr ""
#. module: l10n_be_invoice_bba
#: constraint:account.invoice:0
msgid "Invalid BBA Structured Communication !"
+3 -2
View File
@@ -24,8 +24,9 @@ class account_invoice(osv.osv):
"""Add BBA Structured Communication Type and change labels from 'reference' into 'communication' """
res = super(account_invoice, self)._get_reference_type(cursor, user,
context=context)
res[[i for i,x in enumerate(res) if x[0] == 'none'][0]] = ('none', 'Free Communication')
res.append(('bba', 'BBA Structured Communication'))
res[[i for i,x in enumerate(res) if x[0] == 'none'][0]] = \
('none', _('Free Communication'))
res.append(('bba', _('BBA Structured Communication')))
#l_logger.warning('reference_type = %s' %res )
return res