This question has been flagged
1 Reply
3242 Views

Hello,

I have upgraded from 8.0 to 9.0, it seems to have gone well but i have a few leftover modules that i can't unsintall, for example the share module, when i try to uninstall it I get the following error:


Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 599, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 636, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 315, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 308, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 887, in __call__
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 465, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 975, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 963, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/wizard/base_module_upgrade.py", line 87, in upgrade_module
openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 385, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python2.7/dist-packages/openerp/modules/loading.py", line 385, in load_modules
registry['ir.module.module'].module_uninstall(cr, SUPERUSER_ID, modules_to_remove.values())
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/module/module.py", line 471, in module_uninstall
ir_model_data._module_data_uninstall(cr, uid, modules_to_remove, context)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_model.py", line 1247, in _module_data_uninstall
ir_model_constraint._module_data_uninstall(cr, uid, constraint_ids, context)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 232, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_model.py", line 606, in _module_data_uninstall
model_obj = self.pool[model]
File "/usr/lib/python2.7/dist-packages/openerp/modules/registry.py", line 84, in __getitem__
return self.models[model_name]
KeyError: u'share.wizard.result.line'


Any ideas on how to fix this ?

Avatar
Discard
Best Answer

When you upgrade from a major version of Odoo to another major version you have three options:

  • Use the Odoo upgrade service at http://migration.odoo.com (a paid service - part of the Enterprise contract (aka OPW))

  • Use the Community project OpenUpgrade at https://doc.therp.nl/openupgrade/ (free to spend your time or pay someone to help you)

  • Manually exporting all of your data from your v8 database, then manually import all of your data to your v9 database, transforming to account for schema changes as you go. (not recommended)


Avatar
Discard
Author

Have you succefully upgraded from 8 to 9 with openupgrade ? I'm asking because tho it didn't give any error the db also had mostly the same issues as the original one. As an extra note I'm not using any custom modules, just the standard ones from odoo8

I have no experience with OpenUpgrade. All of the implementations I support are customers with active Enterprise contracts with Odoo, so they can all take advantage of the first option.