Can't import official translation

Bug #315375 reported by Nicolas DS
2
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Undecided
Unassigned

Bug Description

I am using the latest trunk version.

When you try to import an official translation you will get an error:
Administration > Translations > Load an official translation

[Fri Jan 09 2009 09:12:49] INFO:init:module report_timesheet: loading translation file for language fr_FR
[Fri Jan 09 2009 09:12:49] INFO:init:module sale: loading translation file for language fr_FR
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[01]: Exception in call: Traceback (most recent call last):
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[02]: File "/usr/local/lib/openerp/server/bin/wizard/__init__.py", line 73, in execute_cr
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[03]: action_res = action(self, cr, uid, data, context)
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[04]: File "/usr/local/lib/openerp/server/bin/addons/base/module/wizard/wizard_module_lang_install.py", line 54, in _lang_install
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[05]: modobj.update_translations(cr, uid, mids, lang)
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[06]: File "/usr/local/lib/openerp/server/bin/addons/base/module/module.py", line 470, in update_translations
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[07]: tools.trans_load(cr.dbname, f, lang, verbose=False)
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[08]: File "/usr/local/lib/openerp/server/bin/tools/translate.py", line 502, in trans_load
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[09]: r = trans_load_data(db_name, fileobj, fileformat, lang, strict=strict, verbose=verbose)
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[10]: File "/usr/local/lib/openerp/server/bin/tools/translate.py", line 535, in trans_load_data
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[11]: lang_obj.write(cr, uid, ids, {'translatable':1})
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[12]: File "/usr/local/lib/openerp/server/bin/osv/orm.py", line 2201, in write
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[13]: 'where id in ('+ids_str+')', upd1)
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[14]: File "/usr/local/lib/openerp/server/bin/sql_db.py", line 76, in wrapper
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[15]: return f(self, *args, **kwargs)
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[16]: File "/usr/local/lib/openerp/server/bin/sql_db.py", line 114, in execute
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[17]: res = self._obj.execute(query, params)
[Fri Jan 09 2009 09:12:49] ERROR:web-services:[18]: ProgrammingError: n'a pas pu sérialiser un accès à cause d'une mise à jour en parallèle
[Fri Jan 09 2009 09:18:23] WARNING:sql:[01]: Cursor not closed explicitly
[Fri Jan 09 2009 09:18:23] WARNING:sql:[02]: Cursor was created at /usr/local/lib/openerp/server/bin/tools/translate.py:521

Revision history for this message
Nicolas DS (zyphos) wrote :

After some others tests this bug only appear if you create a new database.

I have create a new database, "Service company profile" -> check all options -> select "Minimal Belgian accounting".
 And then
Administration > Translations > Load an official translation > select french / francais.

You will get the bug all time.

Changed in openobject-server:
status: New → In Progress
Changed in openobject-server:
status: In Progress → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.