← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 668642] Re: Translation method wrong usage in account_bank_statement.py

 

Hello, 
The code has been refactored since 2010-10-30, and this has been fixed too. 
See in account/account_cash_statement.py:328 now, in the latest version of the addons. The translation templates have been corrected as well.
Thanks for reporting.

** Changed in: openobject-addons
       Status: Confirmed => Fix Released

** Changed in: openobject-addons
    Milestone: None => 6.0-rc2

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/668642

Title:
  Translation method wrong usage in account_bank_statement.py

Status in OpenObject Addons Modules:
  Fix Released

Bug description:
  There are wrong usage of translation method : _('...')

I got fresh code at 2010-10-30.

addons/account/account_bank_statement.py line 333: button_open method

raise osv.except_osv(_('Error !'), _('User %s does not have rights to access %s journal !' % (statement.user_id.name, statement.journal_id.name)))

It could be like this :
raise osv.except_osv(_('Error !'), _('User %s does not have rights to access %s journal !') % (statement.user_id.name, statement.journal_id.name))

-------------------------
I think there are many same bugs like this. This BUG will making po syntax errors like this :

#. 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"
msgstr ""





References