{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/server-tools/issues/163","repository_url":"https://api.github.com/repos/OCA/server-tools","labels_url":"https://api.github.com/repos/OCA/server-tools/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/OCA/server-tools/issues/163/comments","events_url":"https://api.github.com/repos/OCA/server-tools/issues/163/events","html_url":"https://github.com/OCA/server-tools/issues/163","id":73079644,"number":163,"title":"database_cleanup: KeyError: u'process.transition.action'","user":{"login":"welshjf","id":7895696,"avatar_url":"https://avatars.githubusercontent.com/u/7895696?v=3","gravatar_id":"","url":"https://api.github.com/users/welshjf","html_url":"https://github.com/welshjf","followers_url":"https://api.github.com/users/welshjf/followers","following_url":"https://api.github.com/users/welshjf/following{/other_user}","gists_url":"https://api.github.com/users/welshjf/gists{/gist_id}","starred_url":"https://api.github.com/users/welshjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welshjf/subscriptions","organizations_url":"https://api.github.com/users/welshjf/orgs","repos_url":"https://api.github.com/users/welshjf/repos","events_url":"https://api.github.com/users/welshjf/events{/privacy}","received_events_url":"https://api.github.com/users/welshjf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OCA/server-tools/milestones/3","html_url":"https://github.com/OCA/server-tools/milestones/8.0","labels_url":"https://api.github.com/repos/OCA/server-tools/milestones/3/labels","id":983662,"number":3,"title":"8.0","description":"","creator":{"login":"max3903","id":939952,"avatar_url":"https://avatars.githubusercontent.com/u/939952?v=3","gravatar_id":"","url":"https://api.github.com/users/max3903","html_url":"https://github.com/max3903","followers_url":"https://api.github.com/users/max3903/followers","following_url":"https://api.github.com/users/max3903/following{/other_user}","gists_url":"https://api.github.com/users/max3903/gists{/gist_id}","starred_url":"https://api.github.com/users/max3903/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/max3903/subscriptions","organizations_url":"https://api.github.com/users/max3903/orgs","repos_url":"https://api.github.com/users/max3903/repos","events_url":"https://api.github.com/users/max3903/events{/privacy}","received_events_url":"https://api.github.com/users/max3903/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":80,"state":"open","created_at":"2015-02-17T21:52:00Z","updated_at":"2016-08-22T08:26:01Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-04T17:35:18Z","updated_at":"2016-08-24T06:31:04Z","closed_at":null,"body":"After doing a 7.0 to 8.0 migration with OpenUpgrade, I was left with two obsolete modules installed, \"process\" and \"account_report_company\". I installed database_cleanup, tried to purge them, and got this error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py\", line 530, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py\", line 567, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py\", line 303, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py\", line 300, in checked_call\r\n    return self.endpoint(*a, **kw)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py\", line 796, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/http.py\", line 396, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/home/jwelsh/foss/odoo/odoo/addons/web/controllers/main.py\", line 940, in call_button\r\n    action = self._call_kw(model, method, args, {})\r\n  File \"/home/jwelsh/foss/odoo/odoo/addons/web/controllers/main.py\", line 928, in _call_kw\r\n    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/jwelsh/foss/odoo/server-tools/database_cleanup/model/purge_wizard.py\", line 59, in purge_all\r\n    context=context)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/jwelsh/foss/odoo/server-tools/database_cleanup/model/purge_modules.py\", line 53, in purge\r\n    _db, _pool = pooler.restart_pool(cr.dbname, update_module=True)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/pooler.py\", line 46, in restart_pool\r\n    registry = RegistryManager.new(db_name, force_demo, status, update_module)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/modules/registry.py\", line 368, in new\r\n    openerp.modules.load_modules(registry._db, force_demo, status, update_module)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/modules/loading.py\", line 423, in load_modules\r\n    registry['ir.module.module'].module_uninstall(cr, SUPERUSER_ID, modules_to_remove.values())\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/addons/base/module/module.py\", line 462, in module_uninstall\r\n    ir_model_data._module_data_uninstall(cr, uid, modules_to_remove, context)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/addons/base/ir/ir_model.py\", line 1217, in _module_data_uninstall\r\n    ir_model_constraint._module_data_uninstall(cr, uid, constraint_ids, context)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/api.py\", line 241, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/addons/base/ir/ir_model.py\", line 575, in _module_data_uninstall\r\n    model_obj = self.pool[model]\r\n  File \"/home/jwelsh/.local/lib/python2.7/site-packages/openerp/modules/registry.py\", line 102, in __getitem__\r\n    return self.models[model_name]\r\nKeyError: u'process.transition.action'\r\n```"},"comment":{"url":"https://api.github.com/repos/OCA/server-tools/issues/comments/241970003","html_url":"https://github.com/OCA/server-tools/issues/163#issuecomment-241970003","issue_url":"https://api.github.com/repos/OCA/server-tools/issues/163","id":241970003,"user":{"login":"gurneyalex","id":2032807,"avatar_url":"https://avatars.githubusercontent.com/u/2032807?v=3","gravatar_id":"","url":"https://api.github.com/users/gurneyalex","html_url":"https://github.com/gurneyalex","followers_url":"https://api.github.com/users/gurneyalex/followers","following_url":"https://api.github.com/users/gurneyalex/following{/other_user}","gists_url":"https://api.github.com/users/gurneyalex/gists{/gist_id}","starred_url":"https://api.github.com/users/gurneyalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurneyalex/subscriptions","organizations_url":"https://api.github.com/users/gurneyalex/orgs","repos_url":"https://api.github.com/users/gurneyalex/repos","events_url":"https://api.github.com/users/gurneyalex/events{/privacy}","received_events_url":"https://api.github.com/users/gurneyalex/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T06:31:04Z","updated_at":"2016-08-24T06:31:04Z","body":"@welshjf @hbrunn do you know if this is still relevant?"}}
{"actor":{"display_login":"gurneyalex"}}