[RC3] Error when load/reload official translation

Bug #314449 reported by Christophe CHAUVET
32
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
High
Unassigned

Bug Description

In RC3 when load or reload the official translation i have an errors messages

With Reload translation, actual language "French" and reload "French"
-------------8<------------------8<--------------
Traceback (most recent call last):
  File "/home/kryskool/openerp50-rc3/openerp/server/bin/netsvc.py", line 223, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/kryskool/openerp50-rc3/openerp/server/bin/netsvc.py", line 74, in __call__
    return getattr(self, method)(*params)
  File "/home/kryskool/openerp50-rc3/openerp/server/bin/service/web_services.py", line 486, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/kryskool/openerp50-rc3/openerp/server/bin/service/web_services.py", line 466, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/kryskool/openerp50-rc3/openerp/server/bin/wizard/__init__.py", line 177, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/kryskool/openerp50-rc3/openerp/server/bin/wizard/__init__.py", line 73, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/home/kryskool/openerp50-rc3/openerp/server/bin/addons/base/module/wizard/wizard_module_lang_install.py", line 54, in _lang_install
    modobj.update_translations(cr, uid, mids, lang)
  File "/home/kryskool/openerp50-rc3/openerp/server/bin/addons/base/module/module.py", line 462, in update_translations
    f = os.path.join(addons.get_module_path(mod.name), 'i18n', lang + '.po')
  File "/usr/lib/python2.5/posixpath.py", line 62, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'bool' object has no attribute 'endswith'
-------------8<------------------8<--------------

With "English" as default language, and load "French" language
-------------8<------------------8<--------------
Traceback (most recent call last):
  File "/home/oerp/openerp/5.0/server/bin/netsvc.py", line 421, in run
    result_from_method = method(*msg[2:])
  File "/home/oerp/openerp/5.0/server/bin/service/web_services.py", line 486, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/oerp/openerp/5.0/server/bin/service/web_services.py", line 466, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/oerp/openerp/5.0/server/bin/wizard/__init__.py", line 177, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/oerp/openerp/5.0/server/bin/wizard/__init__.py", line 73, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/home/oerp/openerp/5.0/server/bin/addons/base/module/wizard/wizard_module_lang_install.py", line 54, in _lang_install
    modobj.update_translations(cr, uid, mids, lang)
  File "/home/oerp/openerp/5.0/server/bin/addons/base/module/module.py", line 465, in update_translations
    tools.trans_load(cr.dbname, f, lang, verbose=False)
  File "/home/oerp/openerp/5.0/server/bin/tools/translate.py", line 502, in trans_load
    r = trans_load_data(db_name, fileobj, fileformat, lang, strict=strict, verbose=verbose)
  File "/home/oerp/openerp/5.0/server/bin/tools/translate.py", line 618, in trans_load_data
    trans_obj.write(cr, uid, ids, {'value': dic['value']})
  File "/home/oerp/openerp/5.0/server/bin/osv/orm.py", line 2205, in write
    'where id in ('+ids_str+')', upd1)
  File "/home/oerp/openerp/5.0/server/bin/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/home/oerp/openerp/5.0/server/bin/sql_db.py", line 114, in execute
    res = self._obj.execute(query, params)
ProgrammingError: n'a pas pu sérialiser un accès à cause d'une mise à jour en parallèle
-------------8<------------------8<--------------

Regards,

Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

For the 1st error, can you give us the name of the module that can be load the language file. Can you also give us the parameters uses to start the server (particularly, the 'addons_path' parameter)

The second error is not related to the translations but to the cron...

Changed in openobject-server:
status: New → Incomplete
Changed in openobject-server:
importance: Undecided → High
Changed in openobject-server:
status: Incomplete → Fix Released
Changed in openobject-server:
status: Fix Released → Confirmed
Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

first error is fixed by 1592 <email address hidden>

Changed in openobject-server:
status: Confirmed → Fix Released
Changed in openobject-server:
status: Fix Released → Confirmed
Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

can't reproduce it

Changed in openobject-server:
status: Confirmed → Fix Released
Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

Ok. we patch something. please retry.

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.