[IMP] Improved warning messages for all l10n modules

bzr revid: pso@tinyerp.com-20120722075436-unwk2evpbiuxbp74
This commit is contained in:
pso (OpenERP) 2012-07-22 13:24:36 +05:30
parent 104baf0a0a
commit 6bc7158ed2
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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)