This question has been flagged
1 Reply
6012 Views

Hello!!!

Please, who knows how to force uninstalling a module because when i tried to do it i have this error:


2015-07-10 13:16:10,790 23355 ERROR odoo openerp.http: Exception during JSON request handling.

Traceback (most recent call last):

File "/opt/odoo/odoo/openerp/http.py", line 536, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/opt/odoo/odoo/openerp/http.py", line 573, in dispatch

result = self._call_function(**self.params)

File "/opt/odoo/odoo/openerp/http.py", line 309, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/opt/odoo/odoo/openerp/service/model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "/opt/odoo/odoo/openerp/http.py", line 306, in checked_call

return self.endpoint(*a, **kw)

File "/opt/odoo/odoo/openerp/http.py", line 802, in __call__

return self.method(*args, **kw)

File "/opt/odoo/odoo/openerp/http.py", line 402, in response_wrap

response = f(*args, **kw)

File "/opt/odoo/odoo/addons/web/controllers/main.py", line 941, in call_button

action = self._call_kw(model, method, args, {})

File "/opt/odoo/odoo/addons/web/controllers/main.py", line 929, in _call_kw

return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo/openerp/addons/base/module/wizard/base_module_upgrade.py", line 105, in upgrade_module

openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)

File "/opt/odoo/odoo/openerp/modules/registry.py", line 370, in new

openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/opt/odoo/odoo/openerp/modules/loading.py", line 423, in load_modules

registry['ir.module.module'].module_uninstall(cr, SUPERUSER_ID, modules_to_remove.values())

File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo/openerp/addons/base/module/module.py", line 462, in module_uninstall

ir_model_data._module_data_uninstall(cr, uid, modules_to_remove, context)

File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_model.py", line 1217, in _module_data_uninstall

ir_model_constraint._module_data_uninstall(cr, uid, constraint_ids, context)

File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo/openerp/addons/base/ir/ir_model.py", line 575, in _module_data_uninstall

model_obj = self.pool[model]

File "/opt/odoo/odoo/openerp/modules/registry.py", line 102, in __getitem__

return self.models[model_name]

KeyError: u'facturation.projects'

Avatar
Discard

It is very difficult to guess. "facturation.projects" class is inside the same module which you are trying to uninstall ? If no then please add the module in the dependency in which this class is defined. It may happen that the module in which this class is defined, it may uninstalled. However if still every effort gets fail then just manually fire query into database to delete the model "facturation.projects" and it's related fields. I think thanafter your module will be uninstalled.

Best Answer

Hello,

If module is not install successfully than it will be in to be install state.

From module list find this module and cancel the installation.

than try to solve error and than install again.

Hope this will be useful to you. 

Avatar
Discard