From c62536705f45f0fdb7ebb70a58da67f858cc352d Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Thu, 28 Oct 2010 17:20:04 +0530 Subject: [PATCH] [FIX] account: po file export BUG in account module bzr revid: ara@tinyerp.com-20101028115004-voh5j8rq292xy6e1 --- addons/account/account_cash_statement.py | 2 +- addons/account/i18n/account.pot | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/addons/account/account_cash_statement.py b/addons/account/account_cash_statement.py index 9f63c50ff97..a4ba37d4206 100644 --- a/addons/account/account_cash_statement.py +++ b/addons/account/account_cash_statement.py @@ -328,7 +328,7 @@ class account_cash_statement(osv.osv): vals = {} force_allow = context.get('force_allow',False) if not force_allow and not self._user_allow(cr, uid, statement.id, context=context): - raise osv.except_osv(_('Error !'), _('User %s does not have rights to access %s journal !' % (statement.user_id.name, statement.journal_id.name))) + raise osv.except_osv(_('Error !'), (_('User %s does not have rights to access %s journal !') % (statement.user_id.name, statement.journal_id.name))) if statement.name and statement.name == '/': number = self.pool.get('ir.sequence').get(cr, uid, 'account.cash.statement') diff --git a/addons/account/i18n/account.pot b/addons/account/i18n/account.pot index 16e1d00e683..5dc6db51a33 100644 --- a/addons/account/i18n/account.pot +++ b/addons/account/i18n/account.pot @@ -6283,10 +6283,7 @@ msgstr "" #. module: account #: code:addons/account/account_cash_statement.py:0 #, python-format -msgid "User %s does not have rights to access %s journal !' % (statement.user_id.name, statement.journal_id.name)))\n" -"\n" -" if statement.name and statement.name == '/':\n" -" number = self.pool.get('ir.sequence" +msgid "User %s does not have rights to access %s journal !" msgstr "" #. module: account