← Back to team overview

openerp-india team mailing list archive

[Bug 1088787] [NEW] uninstall of module not works

 

Public bug reported:

I use the lates trunk version as this evening (2012-12-10), and when i
wanted to uninstall the analytic module it throws this error:


OpenERP Server Error

Client Traceback (most recent call last):
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\http.py", line 195, in dispatch
    response["result"] = method(self, **self.params)
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\controllers\main.py", line 1097, in call_button
    action = self._call_kw(req, model, method, args, {})
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\controllers\main.py", line 1085, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\session.py", line 40, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\session.py", line 28, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\session.py", line 101, in send
    raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)


Server Traceback (most recent call last):
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\session.py", line 87, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\netsvc.py", line 281, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\service\web_services.py", line 603, in dispatch
    res = fn(db, uid, *params)
  File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 169, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 123, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 179, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 166, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\module\module.py", line 471, in button_immediate_uninstall
    return self._button_immediate_function(cr, uid, ids, self.button_uninstall, context=context)
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\module\module.py", line 451, in _button_immediate_function
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\modules\registry.py", line 222, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\modules\loading.py", line 408, in load_modules
    pool.get('ir.module.module').module_uninstall(cr, SUPERUSER_ID, mod_ids_to_remove)
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\module\module.py", line 416, in module_uninstall
    ir_model_constraint._module_data_uninstall(cr, uid, constraint_ids, context)
  File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\ir\ir_model.py", line 524, in _module_data_uninstall
    WHERE cs.contype=%s and cs.conname=%s and cl.relname=%s""", ('f', name, model_obj._table))
AttributeError: 'NoneType' object has no attribute '_table'

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1088787

Title:
  uninstall of module not works

Status in OpenERP Server:
  New

Bug description:
  I use the lates trunk version as this evening (2012-12-10), and when i
  wanted to uninstall the analytic module it throws this error:


  OpenERP Server Error

  Client Traceback (most recent call last):
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\http.py", line 195, in dispatch
      response["result"] = method(self, **self.params)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\controllers\main.py", line 1097, in call_button
      action = self._call_kw(req, model, method, args, {})
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\controllers\main.py", line 1085, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\session.py", line 40, in proxy
      result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\session.py", line 28, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\session.py", line 101, in send
      raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\web\session.py", line 87, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\netsvc.py", line 281, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\service\web_services.py", line 603, in dispatch
      res = fn(db, uid, *params)
    File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 169, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 123, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 179, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\module\module.py", line 471, in button_immediate_uninstall
      return self._button_immediate_function(cr, uid, ids, self.button_uninstall, context=context)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\module\module.py", line 451, in _button_immediate_function
      _, pool = pooler.restart_pool(cr.dbname, update_module=True)
    File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\pooler.py", line 39, in restart_pool
      registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
    File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\modules\registry.py", line 222, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "c:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\modules\loading.py", line 408, in load_modules
      pool.get('ir.module.module').module_uninstall(cr, SUPERUSER_ID, mod_ids_to_remove)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\module\module.py", line 416, in module_uninstall
      ir_model_constraint._module_data_uninstall(cr, uid, constraint_ids, context)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\ir\ir_model.py", line 524, in _module_data_uninstall
      WHERE cs.contype=%s and cs.conname=%s and cl.relname=%s""", ('f', name, model_obj._table))
  AttributeError: 'NoneType' object has no attribute '_table'

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


Follow ups

References