From dd81c8f9c340ed78db09f3c9c0b273ad86faa056 Mon Sep 17 00:00:00 2001 From: "Ravish (Open ERP)" Date: Mon, 13 May 2013 15:09:40 +0530 Subject: [PATCH] [FIX] transaltion of journal in company_ onchange bzr revid: rmu@tinyerp.com-20130513093940-59mk45fjdg6fxmsx --- addons/account/account_invoice.py | 2 +- addons/account/i18n/account.pot | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index b4705245268..0fad990e6d6 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -626,7 +626,7 @@ class account_invoice(osv.osv): if r[1] == 'journal_id' and r[2] in journal_ids: val['journal_id'] = r[2] if not val.get('journal_id', False): - raise osv.except_osv(_('Configuration Error!'), (_('Cannot find any account journal of %s type for this company.\n\nYou can create one in the menu: \nConfiguration\Journals\Journals.') % (journal_type))) + raise osv.except_osv(_('Configuration Error!'), (_('Cannot find any account journal of %s type for this company.\n\nYou can create one in the menu: \nConfiguration\Journals\Journals.') % _(journal_type))) dom = {'journal_id': [('id', 'in', journal_ids)]} else: journal_ids = obj_journal.search(cr, uid, []) diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index f78e0427d5c..ffc46409304 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -15,6 +15,30 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. module: account +#: code:addons/account/account_invoice.py:601 +#, python-format +msgid "sale" +msgstr "" + +#. module: account +#: code:addons/account/account_invoice.py:603 +#, python-format +msgid "sale_refund" +msgstr "" + +#. module: account +#: code:addons/account/account_invoice.py:605 +#, python-format +msgid "purchase_refund" +msgstr "" + +#. module: account +#: code:addons/account/account_invoice.py:607 +#, python-format +msgid "purchase" +msgstr "" + #. module: account #: model:process.transition,name:account.process_transition_supplierreconcilepaid0 msgid "System payment"