{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/rma/pulls/comments/46056915","id":46056915,"diff_hunk":"@@ -19,5 +21,14 @@\n #\n ##############################################################################\n \n-from . import stock_warehouse\n-from . import product\n+from . import models\n+from . import wizards\n+from openerp import SUPERUSER_ID\n+\n+\n+def post_init_hook(cr, registry):","path":"crm_rma_stock_location/__init__.py","position":23,"original_position":23,"commit_id":"72ec97c461524588526a1ae7ea9a9823a03d606a","original_commit_id":"72ec97c461524588526a1ae7ea9a9823a03d606a","user":{"login":"yaniaular","id":7602170,"avatar_url":"https://avatars.githubusercontent.com/u/7602170?v=3","gravatar_id":"","url":"https://api.github.com/users/yaniaular","html_url":"https://github.com/yaniaular","followers_url":"https://api.github.com/users/yaniaular/followers","following_url":"https://api.github.com/users/yaniaular/following{/other_user}","gists_url":"https://api.github.com/users/yaniaular/gists{/gist_id}","starred_url":"https://api.github.com/users/yaniaular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaniaular/subscriptions","organizations_url":"https://api.github.com/users/yaniaular/orgs","repos_url":"https://api.github.com/users/yaniaular/repos","events_url":"https://api.github.com/users/yaniaular/events{/privacy}","received_events_url":"https://api.github.com/users/yaniaular/received_events","type":"User","site_admin":false},"body":"I see, what you propose is placing it in a separate file.\r\n@osvalr Osval helps us to separate. Just that the file should be named post_init_hook.py, because\r\ninit_hook.py sounds like it runs at the beginning of the installation.\r\n","created_at":"2015-11-27T15:49:54Z","updated_at":"2015-11-27T15:49:54Z","html_url":"https://github.com/OCA/rma/pull/67#discussion_r46056915","pull_request_url":"https://api.github.com/repos/OCA/rma/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/OCA/rma/pulls/comments/46056915"},"html":{"href":"https://github.com/OCA/rma/pull/67#discussion_r46056915"},"pull_request":{"href":"https://api.github.com/repos/OCA/rma/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/rma/pulls/67","id":51944593,"html_url":"https://github.com/OCA/rma/pull/67","diff_url":"https://github.com/OCA/rma/pull/67.diff","patch_url":"https://github.com/OCA/rma/pull/67.patch","issue_url":"https://api.github.com/repos/OCA/rma/issues/67","number":67,"state":"open","locked":false,"title":"[8.0] Improved module crm_rma_stock_location ","user":{"login":"osvalr","id":2961943,"avatar_url":"https://avatars.githubusercontent.com/u/2961943?v=3","gravatar_id":"","url":"https://api.github.com/users/osvalr","html_url":"https://github.com/osvalr","followers_url":"https://api.github.com/users/osvalr/followers","following_url":"https://api.github.com/users/osvalr/following{/other_user}","gists_url":"https://api.github.com/users/osvalr/gists{/gist_id}","starred_url":"https://api.github.com/users/osvalr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osvalr/subscriptions","organizations_url":"https://api.github.com/users/osvalr/orgs","repos_url":"https://api.github.com/users/osvalr/repos","events_url":"https://api.github.com/users/osvalr/events{/privacy}","received_events_url":"https://api.github.com/users/osvalr/received_events","type":"User","site_admin":false},"body":"crm_rma_stock_location\r\n===================\r\n\r\nThis module gets improved having the following features:\r\n- Adapted to Odoo 8.0\r\n\r\n- Adds Sales menu section for RMA Stocks quantities that summarizes how much does the RMA locations has On-Hand and how much is Forecasted for all products.\r\n\r\n- Includes internal locations for Refurbish and Loss.\r\n\r\n- Includes buttons to quickly send products to Loss stock, Refurbish stock or Warehouse Stock location from warehouse transfers\r\n\r\n- Includes a button to create product loss from Claims.\r\n\r\n- Added unitttest to validate its functionality","created_at":"2015-11-26T20:39:52Z","updated_at":"2015-11-27T15:49:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba73b879c8e339447543779749bab5be9f1ce524","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/rma/pulls/67/commits","review_comments_url":"https://api.github.com/repos/OCA/rma/pulls/67/comments","review_comment_url":"https://api.github.com/repos/OCA/rma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/rma/issues/67/comments","statuses_url":"https://api.github.com/repos/OCA/rma/statuses/72ec97c461524588526a1ae7ea9a9823a03d606a","head":{"label":"vauxoo-dev:8.0-crm_rma_stock_location-oca","ref":"8.0-crm_rma_stock_location-oca","sha":"72ec97c461524588526a1ae7ea9a9823a03d606a","user":{"login":"vauxoo-dev","id":7662790,"avatar_url":"https://avatars.githubusercontent.com/u/7662790?v=3","gravatar_id":"","url":"https://api.github.com/users/vauxoo-dev","html_url":"https://github.com/vauxoo-dev","followers_url":"https://api.github.com/users/vauxoo-dev/followers","following_url":"https://api.github.com/users/vauxoo-dev/following{/other_user}","gists_url":"https://api.github.com/users/vauxoo-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/vauxoo-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vauxoo-dev/subscriptions","organizations_url":"https://api.github.com/users/vauxoo-dev/orgs","repos_url":"https://api.github.com/users/vauxoo-dev/repos","events_url":"https://api.github.com/users/vauxoo-dev/events{/privacy}","received_events_url":"https://api.github.com/users/vauxoo-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":26508381,"name":"rma","full_name":"vauxoo-dev/rma","owner":{"login":"vauxoo-dev","id":7662790,"avatar_url":"https://avatars.githubusercontent.com/u/7662790?v=3","gravatar_id":"","url":"https://api.github.com/users/vauxoo-dev","html_url":"https://github.com/vauxoo-dev","followers_url":"https://api.github.com/users/vauxoo-dev/followers","following_url":"https://api.github.com/users/vauxoo-dev/following{/other_user}","gists_url":"https://api.github.com/users/vauxoo-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/vauxoo-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vauxoo-dev/subscriptions","organizations_url":"https://api.github.com/users/vauxoo-dev/orgs","repos_url":"https://api.github.com/users/vauxoo-dev/repos","events_url":"https://api.github.com/users/vauxoo-dev/events{/privacy}","received_events_url":"https://api.github.com/users/vauxoo-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vauxoo-dev/rma","description":"","fork":true,"url":"https://api.github.com/repos/vauxoo-dev/rma","forks_url":"https://api.github.com/repos/vauxoo-dev/rma/forks","keys_url":"https://api.github.com/repos/vauxoo-dev/rma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vauxoo-dev/rma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vauxoo-dev/rma/teams","hooks_url":"https://api.github.com/repos/vauxoo-dev/rma/hooks","issue_events_url":"https://api.github.com/repos/vauxoo-dev/rma/issues/events{/number}","events_url":"https://api.github.com/repos/vauxoo-dev/rma/events","assignees_url":"https://api.github.com/repos/vauxoo-dev/rma/assignees{/user}","branches_url":"https://api.github.com/repos/vauxoo-dev/rma/branches{/branch}","tags_url":"https://api.github.com/repos/vauxoo-dev/rma/tags","blobs_url":"https://api.github.com/repos/vauxoo-dev/rma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vauxoo-dev/rma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vauxoo-dev/rma/git/refs{/sha}","trees_url":"https://api.github.com/repos/vauxoo-dev/rma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vauxoo-dev/rma/statuses/{sha}","languages_url":"https://api.github.com/repos/vauxoo-dev/rma/languages","stargazers_url":"https://api.github.com/repos/vauxoo-dev/rma/stargazers","contributors_url":"https://api.github.com/repos/vauxoo-dev/rma/contributors","subscribers_url":"https://api.github.com/repos/vauxoo-dev/rma/subscribers","subscription_url":"https://api.github.com/repos/vauxoo-dev/rma/subscription","commits_url":"https://api.github.com/repos/vauxoo-dev/rma/commits{/sha}","git_commits_url":"https://api.github.com/repos/vauxoo-dev/rma/git/commits{/sha}","comments_url":"https://api.github.com/repos/vauxoo-dev/rma/comments{/number}","issue_comment_url":"https://api.github.com/repos/vauxoo-dev/rma/issues/comments{/number}","contents_url":"https://api.github.com/repos/vauxoo-dev/rma/contents/{+path}","compare_url":"https://api.github.com/repos/vauxoo-dev/rma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vauxoo-dev/rma/merges","archive_url":"https://api.github.com/repos/vauxoo-dev/rma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vauxoo-dev/rma/downloads","issues_url":"https://api.github.com/repos/vauxoo-dev/rma/issues{/number}","pulls_url":"https://api.github.com/repos/vauxoo-dev/rma/pulls{/number}","milestones_url":"https://api.github.com/repos/vauxoo-dev/rma/milestones{/number}","notifications_url":"https://api.github.com/repos/vauxoo-dev/rma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vauxoo-dev/rma/labels{/name}","releases_url":"https://api.github.com/repos/vauxoo-dev/rma/releases{/id}","created_at":"2014-11-11T22:43:23Z","updated_at":"2014-12-10T18:48:36Z","pushed_at":"2015-11-26T19:10:36Z","git_url":"git://github.com/vauxoo-dev/rma.git","ssh_url":"git@github.com:vauxoo-dev/rma.git","clone_url":"https://github.com/vauxoo-dev/rma.git","svn_url":"https://github.com/vauxoo-dev/rma","homepage":null,"size":2208,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"OCA:8.0","ref":"8.0","sha":"d9a4f106d27164ba30cec54c5d8aa1c0cd49486e","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"repo":{"id":20922026,"name":"rma","full_name":"OCA/rma","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCA/rma","description":"Odoo for Return Of Material (RMA)","fork":false,"url":"https://api.github.com/repos/OCA/rma","forks_url":"https://api.github.com/repos/OCA/rma/forks","keys_url":"https://api.github.com/repos/OCA/rma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/rma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/rma/teams","hooks_url":"https://api.github.com/repos/OCA/rma/hooks","issue_events_url":"https://api.github.com/repos/OCA/rma/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/rma/events","assignees_url":"https://api.github.com/repos/OCA/rma/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/rma/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/rma/tags","blobs_url":"https://api.github.com/repos/OCA/rma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/rma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/rma/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/rma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/rma/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/rma/languages","stargazers_url":"https://api.github.com/repos/OCA/rma/stargazers","contributors_url":"https://api.github.com/repos/OCA/rma/contributors","subscribers_url":"https://api.github.com/repos/OCA/rma/subscribers","subscription_url":"https://api.github.com/repos/OCA/rma/subscription","commits_url":"https://api.github.com/repos/OCA/rma/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/rma/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/rma/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/rma/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/rma/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/rma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/rma/merges","archive_url":"https://api.github.com/repos/OCA/rma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/rma/downloads","issues_url":"https://api.github.com/repos/OCA/rma/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/rma/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/rma/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/rma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/rma/labels{/name}","releases_url":"https://api.github.com/repos/OCA/rma/releases{/id}","created_at":"2014-06-17T12:15:02Z","updated_at":"2015-10-23T23:02:04Z","pushed_at":"2015-11-26T20:39:53Z","git_url":"git://github.com/OCA/rma.git","ssh_url":"git@github.com:OCA/rma.git","clone_url":"https://github.com/OCA/rma.git","svn_url":"https://github.com/OCA/rma","homepage":"","size":2299,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":14,"forks":44,"open_issues":14,"watchers":9,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/rma/pulls/67"},"html":{"href":"https://github.com/OCA/rma/pull/67"},"issue":{"href":"https://api.github.com/repos/OCA/rma/issues/67"},"comments":{"href":"https://api.github.com/repos/OCA/rma/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/rma/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/rma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/rma/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/rma/statuses/72ec97c461524588526a1ae7ea9a9823a03d606a"}}}}