← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

-- 
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: Confirmed

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