← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 666724] Re: Export po file BUG on account module, po syntax error

 

Hello Jacara,

This has now been fixed in the latest trunk, and not just this case but
any others too. Starting with a fresh database you should have much
cleaner translations.

Thanks for reporting

** Project changed: openobject-server => openobject-addons

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

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

-- 
Export po file BUG on account module, po syntax error
https://bugs.launchpad.net/bugs/666724
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Fix Released

Bug description:
I'm using revision 4465 code.
When i export mn.po file from account module (using Admin->Translations->Import / Export->Export Translation wizard) then generated po file has syntax error.

#. module: account
#: code:addons/account/wizard/account_move_journal.py:0
#, python-format
msgid ""
"Can\'t find any account journal of %s type for this company.\n"
"\n"
"You can create one in the menu: \n"
"Configuration\Financial Accounting\Accounts\Journals.' % (context.get('journal_type"
msgstr ""
"Can\'t find any account journal of %s type for this company.\n"
"\n"
"You can create one in the menu: \n"
"Configuration\Financial Accounting\Accounts\Journals.' % (context.get('journal_type"

My solution to fix this error :
addons/account/wizard/account_move_journal.py line 54:

- raise osv.except_osv(_('Configuration Error !'), _('Can\'t find any account journal of %s type for this company.\n\nYou can create one in the menu: \nConfiguration\Financial Accounting\Accounts\Journals.' % (context.get('journal_type'))))

+ raise osv.except_osv(_('Configuration Error !'), _("Can't find any account journal of %s type for this company.\n\nYou can create one in the menu: \nConfiguration\\Financial Accounting\\Accounts\\Journals." % (context.get('journal_type'))))

------------------------------------

#. module: account
#: code:addons/account/invoice.py:0
#, python-format
msgid ""
"Can\'t find any account journal of %s type for this company.\n"
"\n"
"You can create one in the menu: \n"
"Configuration\Financial Accounting\Accounts\Journals.' % (journal_type)))\n"
"            dom = {'journal_id':  [('id', 'in', journal_ids)]}\n"
"        else:\n"
"            journal_ids = obj_journal.search(cr, uid, [])\n"
"\n"
"        if currency_id and company_id:\n"
"            currency = self.pool.get('res.currency"
msgstr ""
"Can\'t find any account journal of %s type for this company.\n"
"\n"
"You can create one in the menu: \n"
"Configuration\Financial Accounting\Accounts\Journals.' % (journal_type)))\n"
"            dom = {'journal_id':  [('id', 'in', journal_ids)]}\n"
"        else:\n"
"            journal_ids = obj_journal.search(cr, uid, [])\n"
"\n"
"        if currency_id and company_id:\n"
"            currency = self.pool.get('res.currency"

My solution to fix this error :
addons/account/invoice.py line 574:

- raise osv.except_osv(_('Configuration Error !'), _('Can\'t find any account journal of %s type for this company.\n\nYou can create one in the menu: \nConfiguration\Financial Accounting\Accounts\Journals.' % (journal_type)))

+ raise osv.except_osv(_('Configuration Error !'), _("Can't find any account journal of %s type for this company.\n\nYou can create one in the menu: \nConfiguration\\Financial Accounting\\Accounts\\Journals." % (journal_type)))





References