{"action":"created","comment":{"url":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/comments/38166344","id":38166344,"diff_hunk":"@@ -229,6 +231,45 @@ def create_from(cls, channel, product_data):\n         listing.save()\n         return listing\n \n+    def export_inventory(self):\n+        \"\"\"\n+        Export inventory of this listing\n+        \"\"\"\n+        Location = Pool().get('stock.location')\n+\n+        channel, product = self.channel, self.product\n+\n+        if self.channel.source != 'magento':\n+            super(ProductSaleChannelListing, self).export_inventory()\n+\n+        locations = map(int, Location.search([('type', '=', 'storage')]))","path":"product.py","position":23,"original_position":23,"commit_id":"c9ad0ced1e7d88949c61ed3850763f7a7cac38c5","original_commit_id":"c9ad0ced1e7d88949c61ed3850763f7a7cac38c5","user":{"login":"sharoonthomas","id":305807,"avatar_url":"https://avatars.githubusercontent.com/u/305807?v=3","gravatar_id":"","url":"https://api.github.com/users/sharoonthomas","html_url":"https://github.com/sharoonthomas","followers_url":"https://api.github.com/users/sharoonthomas/followers","following_url":"https://api.github.com/users/sharoonthomas/following{/other_user}","gists_url":"https://api.github.com/users/sharoonthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/sharoonthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharoonthomas/subscriptions","organizations_url":"https://api.github.com/users/sharoonthomas/orgs","repos_url":"https://api.github.com/users/sharoonthomas/repos","events_url":"https://api.github.com/users/sharoonthomas/events{/privacy}","received_events_url":"https://api.github.com/users/sharoonthomas/received_events","type":"User","site_admin":false},"body":"inventory associated with the warehouse of the channel ?","created_at":"2015-08-28T02:12:01Z","updated_at":"2015-08-28T02:12:01Z","html_url":"https://github.com/fulfilio/trytond-magento/pull/19#discussion_r38166344","pull_request_url":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/comments/38166344"},"html":{"href":"https://github.com/fulfilio/trytond-magento/pull/19#discussion_r38166344"},"pull_request":{"href":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/19","id":43545472,"html_url":"https://github.com/fulfilio/trytond-magento/pull/19","diff_url":"https://github.com/fulfilio/trytond-magento/pull/19.diff","patch_url":"https://github.com/fulfilio/trytond-magento/pull/19.patch","issue_url":"https://api.github.com/repos/fulfilio/trytond-magento/issues/19","number":19,"state":"open","locked":false,"title":"Use centralized method of sale channel to export inventory","user":{"login":"tarunbhardwaj","id":3259423,"avatar_url":"https://avatars.githubusercontent.com/u/3259423?v=3","gravatar_id":"","url":"https://api.github.com/users/tarunbhardwaj","html_url":"https://github.com/tarunbhardwaj","followers_url":"https://api.github.com/users/tarunbhardwaj/followers","following_url":"https://api.github.com/users/tarunbhardwaj/following{/other_user}","gists_url":"https://api.github.com/users/tarunbhardwaj/gists{/gist_id}","starred_url":"https://api.github.com/users/tarunbhardwaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarunbhardwaj/subscriptions","organizations_url":"https://api.github.com/users/tarunbhardwaj/orgs","repos_url":"https://api.github.com/users/tarunbhardwaj/repos","events_url":"https://api.github.com/users/tarunbhardwaj/events{/privacy}","received_events_url":"https://api.github.com/users/tarunbhardwaj/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-08-27T17:42:51Z","updated_at":"2015-08-28T02:12:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c61c9b992b530ff72a2b2a1cd32ee3c5f3e38ad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/19/commits","review_comments_url":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/19/comments","review_comment_url":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fulfilio/trytond-magento/issues/19/comments","statuses_url":"https://api.github.com/repos/fulfilio/trytond-magento/statuses/c9ad0ced1e7d88949c61ed3850763f7a7cac38c5","head":{"label":"tarunbhardwaj:develop","ref":"develop","sha":"c9ad0ced1e7d88949c61ed3850763f7a7cac38c5","user":{"login":"tarunbhardwaj","id":3259423,"avatar_url":"https://avatars.githubusercontent.com/u/3259423?v=3","gravatar_id":"","url":"https://api.github.com/users/tarunbhardwaj","html_url":"https://github.com/tarunbhardwaj","followers_url":"https://api.github.com/users/tarunbhardwaj/followers","following_url":"https://api.github.com/users/tarunbhardwaj/following{/other_user}","gists_url":"https://api.github.com/users/tarunbhardwaj/gists{/gist_id}","starred_url":"https://api.github.com/users/tarunbhardwaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarunbhardwaj/subscriptions","organizations_url":"https://api.github.com/users/tarunbhardwaj/orgs","repos_url":"https://api.github.com/users/tarunbhardwaj/repos","events_url":"https://api.github.com/users/tarunbhardwaj/events{/privacy}","received_events_url":"https://api.github.com/users/tarunbhardwaj/received_events","type":"User","site_admin":false},"repo":{"id":40046856,"name":"trytond-magento","full_name":"tarunbhardwaj/trytond-magento","owner":{"login":"tarunbhardwaj","id":3259423,"avatar_url":"https://avatars.githubusercontent.com/u/3259423?v=3","gravatar_id":"","url":"https://api.github.com/users/tarunbhardwaj","html_url":"https://github.com/tarunbhardwaj","followers_url":"https://api.github.com/users/tarunbhardwaj/followers","following_url":"https://api.github.com/users/tarunbhardwaj/following{/other_user}","gists_url":"https://api.github.com/users/tarunbhardwaj/gists{/gist_id}","starred_url":"https://api.github.com/users/tarunbhardwaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarunbhardwaj/subscriptions","organizations_url":"https://api.github.com/users/tarunbhardwaj/orgs","repos_url":"https://api.github.com/users/tarunbhardwaj/repos","events_url":"https://api.github.com/users/tarunbhardwaj/events{/privacy}","received_events_url":"https://api.github.com/users/tarunbhardwaj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tarunbhardwaj/trytond-magento","description":"Integration of Magento e-commerce with Tryton http://tryton-magento-connector.readthedocs.org/en/latest/","fork":true,"url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento","forks_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/forks","keys_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/teams","hooks_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/hooks","issue_events_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/issues/events{/number}","events_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/events","assignees_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/assignees{/user}","branches_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/branches{/branch}","tags_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/tags","blobs_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/git/refs{/sha}","trees_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/statuses/{sha}","languages_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/languages","stargazers_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/stargazers","contributors_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/contributors","subscribers_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/subscribers","subscription_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/subscription","commits_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/commits{/sha}","git_commits_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/git/commits{/sha}","comments_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/comments{/number}","issue_comment_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/issues/comments{/number}","contents_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/contents/{+path}","compare_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/merges","archive_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/downloads","issues_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/issues{/number}","pulls_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/pulls{/number}","milestones_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/milestones{/number}","notifications_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/labels{/name}","releases_url":"https://api.github.com/repos/tarunbhardwaj/trytond-magento/releases{/id}","created_at":"2015-08-01T13:07:29Z","updated_at":"2015-08-01T13:07:30Z","pushed_at":"2015-08-27T18:06:09Z","git_url":"git://github.com/tarunbhardwaj/trytond-magento.git","ssh_url":"git@github.com:tarunbhardwaj/trytond-magento.git","clone_url":"https://github.com/tarunbhardwaj/trytond-magento.git","svn_url":"https://github.com/tarunbhardwaj/trytond-magento","homepage":null,"size":5373,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"fulfilio:develop","ref":"develop","sha":"a7bb92487846a8634f29151549601323456d48e4","user":{"login":"fulfilio","id":12905196,"avatar_url":"https://avatars.githubusercontent.com/u/12905196?v=3","gravatar_id":"","url":"https://api.github.com/users/fulfilio","html_url":"https://github.com/fulfilio","followers_url":"https://api.github.com/users/fulfilio/followers","following_url":"https://api.github.com/users/fulfilio/following{/other_user}","gists_url":"https://api.github.com/users/fulfilio/gists{/gist_id}","starred_url":"https://api.github.com/users/fulfilio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulfilio/subscriptions","organizations_url":"https://api.github.com/users/fulfilio/orgs","repos_url":"https://api.github.com/users/fulfilio/repos","events_url":"https://api.github.com/users/fulfilio/events{/privacy}","received_events_url":"https://api.github.com/users/fulfilio/received_events","type":"Organization","site_admin":false},"repo":{"id":39772472,"name":"trytond-magento","full_name":"fulfilio/trytond-magento","owner":{"login":"fulfilio","id":12905196,"avatar_url":"https://avatars.githubusercontent.com/u/12905196?v=3","gravatar_id":"","url":"https://api.github.com/users/fulfilio","html_url":"https://github.com/fulfilio","followers_url":"https://api.github.com/users/fulfilio/followers","following_url":"https://api.github.com/users/fulfilio/following{/other_user}","gists_url":"https://api.github.com/users/fulfilio/gists{/gist_id}","starred_url":"https://api.github.com/users/fulfilio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fulfilio/subscriptions","organizations_url":"https://api.github.com/users/fulfilio/orgs","repos_url":"https://api.github.com/users/fulfilio/repos","events_url":"https://api.github.com/users/fulfilio/events{/privacy}","received_events_url":"https://api.github.com/users/fulfilio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fulfilio/trytond-magento","description":"Integration of Magento e-commerce with Tryton http://tryton-magento-connector.readthedocs.org/en/latest/","fork":false,"url":"https://api.github.com/repos/fulfilio/trytond-magento","forks_url":"https://api.github.com/repos/fulfilio/trytond-magento/forks","keys_url":"https://api.github.com/repos/fulfilio/trytond-magento/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fulfilio/trytond-magento/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fulfilio/trytond-magento/teams","hooks_url":"https://api.github.com/repos/fulfilio/trytond-magento/hooks","issue_events_url":"https://api.github.com/repos/fulfilio/trytond-magento/issues/events{/number}","events_url":"https://api.github.com/repos/fulfilio/trytond-magento/events","assignees_url":"https://api.github.com/repos/fulfilio/trytond-magento/assignees{/user}","branches_url":"https://api.github.com/repos/fulfilio/trytond-magento/branches{/branch}","tags_url":"https://api.github.com/repos/fulfilio/trytond-magento/tags","blobs_url":"https://api.github.com/repos/fulfilio/trytond-magento/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fulfilio/trytond-magento/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fulfilio/trytond-magento/git/refs{/sha}","trees_url":"https://api.github.com/repos/fulfilio/trytond-magento/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fulfilio/trytond-magento/statuses/{sha}","languages_url":"https://api.github.com/repos/fulfilio/trytond-magento/languages","stargazers_url":"https://api.github.com/repos/fulfilio/trytond-magento/stargazers","contributors_url":"https://api.github.com/repos/fulfilio/trytond-magento/contributors","subscribers_url":"https://api.github.com/repos/fulfilio/trytond-magento/subscribers","subscription_url":"https://api.github.com/repos/fulfilio/trytond-magento/subscription","commits_url":"https://api.github.com/repos/fulfilio/trytond-magento/commits{/sha}","git_commits_url":"https://api.github.com/repos/fulfilio/trytond-magento/git/commits{/sha}","comments_url":"https://api.github.com/repos/fulfilio/trytond-magento/comments{/number}","issue_comment_url":"https://api.github.com/repos/fulfilio/trytond-magento/issues/comments{/number}","contents_url":"https://api.github.com/repos/fulfilio/trytond-magento/contents/{+path}","compare_url":"https://api.github.com/repos/fulfilio/trytond-magento/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fulfilio/trytond-magento/merges","archive_url":"https://api.github.com/repos/fulfilio/trytond-magento/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fulfilio/trytond-magento/downloads","issues_url":"https://api.github.com/repos/fulfilio/trytond-magento/issues{/number}","pulls_url":"https://api.github.com/repos/fulfilio/trytond-magento/pulls{/number}","milestones_url":"https://api.github.com/repos/fulfilio/trytond-magento/milestones{/number}","notifications_url":"https://api.github.com/repos/fulfilio/trytond-magento/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fulfilio/trytond-magento/labels{/name}","releases_url":"https://api.github.com/repos/fulfilio/trytond-magento/releases{/id}","created_at":"2015-07-27T12:08:51Z","updated_at":"2015-07-27T12:12:51Z","pushed_at":"2015-08-27T18:06:09Z","git_url":"git://github.com/fulfilio/trytond-magento.git","ssh_url":"git@github.com:fulfilio/trytond-magento.git","clone_url":"https://github.com/fulfilio/trytond-magento.git","svn_url":"https://github.com/fulfilio/trytond-magento","homepage":null,"size":5606,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/19"},"html":{"href":"https://github.com/fulfilio/trytond-magento/pull/19"},"issue":{"href":"https://api.github.com/repos/fulfilio/trytond-magento/issues/19"},"comments":{"href":"https://api.github.com/repos/fulfilio/trytond-magento/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fulfilio/trytond-magento/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/fulfilio/trytond-magento/statuses/c9ad0ced1e7d88949c61ed3850763f7a7cac38c5"}}}}