Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


How to force uninstalling a module in odoo

Drees Far
on 7/10/15, 9:20 AM 519 views


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'

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.

Emipro Technologies Pvt. Ltd.
on 7/10/15, 9:28 AM

Solanki Shamji

--Solanki Shamji--
| 5 2 6
Baroda, India
--Solanki Shamji--


Solanki Shamji
On 7/10/15, 9:25 AM


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. 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 7/10/15, 9:20 AM
Seen: 519 times
Last updated: 7/10/15, 9:28 AM