{"action":"created","issue":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/391","labels_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/391/comments","events_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/391/events","html_url":"https://github.com/OCA/OpenUpgrade/issues/391","id":113595045,"number":391,"title":"Merge Modules in  database migration 5.0 to 8.0","user":{"login":"synconics","id":5201731,"avatar_url":"https://avatars.githubusercontent.com/u/5201731?v=3","gravatar_id":"","url":"https://api.github.com/users/synconics","html_url":"https://github.com/synconics","followers_url":"https://api.github.com/users/synconics/followers","following_url":"https://api.github.com/users/synconics/following{/other_user}","gists_url":"https://api.github.com/users/synconics/gists{/gist_id}","starred_url":"https://api.github.com/users/synconics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synconics/subscriptions","organizations_url":"https://api.github.com/users/synconics/orgs","repos_url":"https://api.github.com/users/synconics/repos","events_url":"https://api.github.com/users/synconics/events{/privacy}","received_events_url":"https://api.github.com/users/synconics/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-27T14:24:39Z","updated_at":"2015-10-27T20:52:28Z","closed_at":null,"body":"Hello  All,\r\n\r\nI am trying to write migration scripts for v5 - v8 database migration with some my custom module.\r\nI want to do database analysis for my modules. But I am confuse how to do that with changed module name in targeted version.\r\nI have modules A,B,C and D in v5 and all are merged into module E in v8.\r\nNow for clear database analysis what i have to do?\r\nI know the basic steps for db analysis. But not aware about change module name and merge modules.\r\nPlease guide me.\r\n\r\nThanks in advance."},"comment":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/comments/151640089","html_url":"https://github.com/OCA/OpenUpgrade/issues/391#issuecomment-151640089","issue_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/391","id":151640089,"user":{"login":"StefanRijnhart","id":1033124,"avatar_url":"https://avatars.githubusercontent.com/u/1033124?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanRijnhart","html_url":"https://github.com/StefanRijnhart","followers_url":"https://api.github.com/users/StefanRijnhart/followers","following_url":"https://api.github.com/users/StefanRijnhart/following{/other_user}","gists_url":"https://api.github.com/users/StefanRijnhart/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanRijnhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanRijnhart/subscriptions","organizations_url":"https://api.github.com/users/StefanRijnhart/orgs","repos_url":"https://api.github.com/users/StefanRijnhart/repos","events_url":"https://api.github.com/users/StefanRijnhart/events{/privacy}","received_events_url":"https://api.github.com/users/StefanRijnhart/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T20:52:28Z","updated_at":"2015-10-27T20:52:28Z","body":"Agree with @pedrobaeza but at some step you will have to merge these modules.\r\n\r\nI would choose one of the modules (let's say, *A*) to rename to *E* by adding this combo to https://github.com/OCA/OpenUpgrade/blob/8.0/openerp/addons/openupgrade_records/lib/apriori.py.\r\n\r\nModify your data structure as any other migration script in the *E* module. Be sure to rename any XMLID from B, C and D to E.\r\n\r\nAfter the migration, uninstall B, C, and D with or without the database_cleanup module from https://github.com/oca/server-tools\r\n"}}