Odoo Help


Uninstallation error

Umashankar Subramani
on 3/21/15, 2:37 AM 1,388 views

Hi ,

   When i try to uninstall my custom module i got this error please anyone give any suggestion to clear this.....Thanks in advance

Traceback (most recent call last):

File "/home/umashankar/workspace/test/openerp/http.py", line 518, in _handle_exception

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

File "/home/umashankar/workspace/test/openerp/http.py", line 539, in dispatch

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

File "/home/umashankar/workspace/test/openerp/http.py", line 295, in _call_function

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

File "/home/umashankar/workspace/test/openerp/service/model.py", line 113, in wrapper

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

File "/home/umashankar/workspace/test/openerp/http.py", line 292, in checked_call

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

File "/home/umashankar/workspace/test/openerp/http.py", line 755, in __call__

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

File "/home/umashankar/workspace/test/openerp/http.py", line 388, in response_wrap

response = f(*args, **kw)

File "/home/umashankar/Uma/Odoo8/odoo-8.0/openerp/addons/web/controllers/main.py", line 953, in call_button

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

File "/home/umashankar/Uma/Odoo8/odoo-8.0/openerp/addons/web/controllers/main.py", line 941, in _call_kw

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

File "/home/umashankar/workspace/test/openerp/api.py", line 237, in wrapper

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

File "/home/umashankar/Uma/Odoo8/odoo-8.0/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 "/home/umashankar/workspace/test/openerp/modules/registry.py", line 341, in new

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

File "/home/umashankar/workspace/test/openerp/modules/loading.py", line 433, in load_modules

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

File "/home/umashankar/workspace/test/openerp/api.py", line 237, in wrapper

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

File "/home/umashankar/Uma/Odoo8/odoo-8.0/openerp/addons/base/module/module.py", line 462, in module_uninstall

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

File "/home/umashankar/workspace/test/openerp/api.py", line 237, in wrapper

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

File "/home/umashankar/Uma/Odoo8/odoo-8.0/openerp/addons/base/ir/ir_model.py", line 1206, in _module_data_uninstall

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

File "/home/umashankar/workspace/test/openerp/api.py", line 237, in wrapper

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

File "/home/umashankar/Uma/Odoo8/odoo-8.0/openerp/addons/base/ir/ir_model.py", line 576, in _module_data_uninstall

model_obj = self.pool[model]

File "/home/umashankar/workspace/test/openerp/modules/registry.py", line 101, in __getitem__

return self.models[model_name]

KeyError: u'student.marks'




| 6 5 7
Lodz, Poland

On 3/21/15, 6:15 AM

It's probably the problem of data consistency. Try can use database_cleanup tool. Be careful!

zbik, thanks your answers helped me many times

on 4/21/15, 1:57 PM
Arjun Khode
On 4/3/15, 7:08 AM

There is some mistake in your code. You will have to remove the mistake to uninstall the module successfully. Or

Simply cut the module folder from your addons folder and paste it somewhere outside.

Then try uninstalling the module.




| 5 3 8
Pondicherry, India
On 3/23/15, 2:52 AM

It might be that in your config file (openerp-server.conf), the addons path is not correctly set. Your module is not recognized by OpenERP. The module must be installed in the standard addons folder (with for example a symlink), or must be put in another folder, that was mentioned in the addons path, for example:

addons_path = /opt/openerp/addons,/opt/openerp/web/addons,/opt/openerp/custom/addons/

your custom modules should then be put in: /opt/openerp/custom/addons/

Note: make not the mistake to write /opt/openerp/custom/addons/my_custom_module

Thanks vasanth......

Umashankar Subramani
on 3/24/15, 12:59 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/21/15, 2:37 AM
Seen: 1388 times
Last updated: 4/3/15, 7:08 AM