← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 838864] Re: clear_cache provokes crash during new db installation

 

** Branch linked: lp:openobject-server

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

Title:
  clear_cache provokes crash during new db installation

Status in OpenERP Server:
  In Progress

Bug description:
  Hi!

  In fact just after having created a new db with "french - belgium" as
  default language, I try to install sales management. It crashes in the
  middle of the process with the following traceback:

  Traceback (most recent call last):
    File "/home/fde/repository/openobject-server_trunk/openerp/osv/osv.py", line 118, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/fde/repository/openobject-server_trunk/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/fde/repository/openobject-server_trunk/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/fde/repository/openobject-server_trunk/openerp/addons/base/res/res_config.py", line 142, in action_next
      next = self.execute(cr, uid, ids, context=context)
    File "/home/fde/repository/openobject-addons_trunk/base_setup/base_setup.py", line 138, in execute
      self.pool = pooler.restart_pool(cr.dbname, update_module=True)[1]
    File "/home/fde/repository/openobject-server_trunk/openerp/pooler.py", line 44, in restart_pool
      registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
    File "/home/fde/repository/openobject-server_trunk/openerp/modules/registry.py", line 136, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/home/fde/repository/openobject-server_trunk/openerp/modules/loading.py", line 329, in load_modules
      processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
    File "/home/fde/repository/openobject-server_trunk/openerp/modules/loading.py", line 244, in load_marked_modules
      loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
    File "/home/fde/repository/openobject-server_trunk/openerp/modules/loading.py", line 208, in load_module_graph
      modobj.update_translations(cr, 1, [module_id], None)
    File "/home/fde/repository/openobject-server_trunk/openerp/addons/base/module/module.py", line 536, in update_translations
      tools.trans_load(cr, f, lang, verbose=False, context=context2)
    File "/home/fde/repository/openobject-server_trunk/openerp/tools/translate.py", line 847, in trans_load
      r = trans_load_data(cr, fileobj, fileformat, lang, verbose=verbose, context=context)
    File "/home/fde/repository/openobject-server_trunk/openerp/tools/translate.py", line 935, in trans_load_data
      trans_obj.write(cr, uid, ids, {'value': dic['value']})
    File "/home/fde/repository/openobject-server_trunk/openerp/addons/base/ir/ir_translation.py", line 189, in write
      self._get_source.clear_cache(self, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], source=trans_obj['src'])
  UnboundLocalError: local variable 'trans_obj' referenced before assignment
  > /home/fde/repository/openobject-server_trunk/openerp/addons/base/ir/ir_translation.py(189)write()
  -> self._get_source.clear_cache(self, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], source=trans_obj['src'])



  
  revno: 3566

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/838864/+subscriptions


References