From 6bc7158ed27d8e878a4a158f6c043dfba342fd5d Mon Sep 17 00:00:00 2001 From: "pso (OpenERP)" Date: Sun, 22 Jul 2012 13:24:36 +0530 Subject: [PATCH] [IMP] Improved warning messages for all l10n modules bzr revid: pso@tinyerp.com-20120722075436-unwk2evpbiuxbp74 --- addons/l10n_ch/i18n/l10n_ch.pot | 2 +- addons/l10n_ch/wizard/bvr_import.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/l10n_ch/i18n/l10n_ch.pot b/addons/l10n_ch/i18n/l10n_ch.pot index f5230cbf692..2614ea124a9 100644 --- a/addons/l10n_ch/i18n/l10n_ch.pot +++ b/addons/l10n_ch/i18n/l10n_ch.pot @@ -279,7 +279,7 @@ msgstr "" #. module: l10n_ch #: code:addons/l10n_ch/wizard/bvr_import.py:0 #, python-format -msgid "The properties account payable account receivable" +msgid "The properties account payable and account receivable are not set." msgstr "" #. module: l10n_ch diff --git a/addons/l10n_ch/wizard/bvr_import.py b/addons/l10n_ch/wizard/bvr_import.py index d2c658513e5..3233a277ce6 100644 --- a/addons/l10n_ch/wizard/bvr_import.py +++ b/addons/l10n_ch/wizard/bvr_import.py @@ -222,10 +222,10 @@ def _import(self, cursor, user, data, context=None): account_id = int(value.split(',')[1]) else : raise osv.except_osv(_('Error'), - _('The properties account payable account receivable are not set.')) + _('The properties account payable and account receivable are not set.')) if not account_id and line_ids: raise osv.except_osv(_('Error'), - _('The properties account payable account receivable are not set.')) + _('The properties account payable and account receivable are not set.')) values['account_id'] = account_id values['partner_id'] = partner_id statement_line_obj.create(cursor, user, values, context=context)