From b3cd386fca81f207d1a1200bbfc786db98f0a7c8 Mon Sep 17 00:00:00 2001 From: Zakaria Makrelouf Date: Fri, 27 Jan 2017 12:40:06 +0100 Subject: [PATCH] [FIX] l10n_be_invoice_bba: add translated label Closes #15245 --- .../i18n/l10n_be_invoice_bba.pot | 20 +++++++++++++++---- addons/l10n_be_invoice_bba/invoice.py | 5 +++-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/addons/l10n_be_invoice_bba/i18n/l10n_be_invoice_bba.pot b/addons/l10n_be_invoice_bba/i18n/l10n_be_invoice_bba.pot index 3c6a42e32e4..0adccaaf56a 100644 --- a/addons/l10n_be_invoice_bba/i18n/l10n_be_invoice_bba.pot +++ b/addons/l10n_be_invoice_bba/i18n/l10n_be_invoice_bba.pot @@ -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 !" diff --git a/addons/l10n_be_invoice_bba/invoice.py b/addons/l10n_be_invoice_bba/invoice.py index 8e6bd53d4d3..ebdd610996b 100644 --- a/addons/l10n_be_invoice_bba/invoice.py +++ b/addons/l10n_be_invoice_bba/invoice.py @@ -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