{"action":"created","comment":{"url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/comments/48635887","id":48635887,"diff_hunk":"@@ -78,6 +78,22 @@ class ShipmentOut:\n     )\n     endicia_refunded = fields.Boolean('Refunded ?', readonly=True)\n \n+    def get_tracking_number(self, name):\n+        \"\"\"\n+        Return first tracking number for this shipment\n+        if carrier is Endicia\n+        \"\"\"\n+        if not self.carrier.carrier_cost_method == 'endicia':","path":"stock.py","position":9,"original_position":9,"commit_id":"345ee908a3c22bcfa4a4c1b7a4f08d3c4db4f0ea","original_commit_id":"345ee908a3c22bcfa4a4c1b7a4f08d3c4db4f0ea","user":{"login":"priyankarani","id":2486079,"avatar_url":"https://avatars.githubusercontent.com/u/2486079?v=3","gravatar_id":"","url":"https://api.github.com/users/priyankarani","html_url":"https://github.com/priyankarani","followers_url":"https://api.github.com/users/priyankarani/followers","following_url":"https://api.github.com/users/priyankarani/following{/other_user}","gists_url":"https://api.github.com/users/priyankarani/gists{/gist_id}","starred_url":"https://api.github.com/users/priyankarani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priyankarani/subscriptions","organizations_url":"https://api.github.com/users/priyankarani/orgs","repos_url":"https://api.github.com/users/priyankarani/repos","events_url":"https://api.github.com/users/priyankarani/events{/privacy}","received_events_url":"https://api.github.com/users/priyankarani/received_events","type":"User","site_admin":false},"body":"self.carrier.carrier_cost_method != 'endicia'","created_at":"2015-12-30T22:21:08Z","updated_at":"2015-12-30T22:21:08Z","html_url":"https://github.com/fulfilio/trytond-shipping-endicia/pull/33#discussion_r48635887","pull_request_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/comments/48635887"},"html":{"href":"https://github.com/fulfilio/trytond-shipping-endicia/pull/33#discussion_r48635887"},"pull_request":{"href":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/33","id":54834130,"html_url":"https://github.com/fulfilio/trytond-shipping-endicia/pull/33","diff_url":"https://github.com/fulfilio/trytond-shipping-endicia/pull/33.diff","patch_url":"https://github.com/fulfilio/trytond-shipping-endicia/pull/33.patch","issue_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/issues/33","number":33,"state":"open","locked":false,"title":"Create 'tracking_number' as per new model design","user":{"login":"riteshshrv","id":6908014,"avatar_url":"https://avatars.githubusercontent.com/u/6908014?v=3","gravatar_id":"","url":"https://api.github.com/users/riteshshrv","html_url":"https://github.com/riteshshrv","followers_url":"https://api.github.com/users/riteshshrv/followers","following_url":"https://api.github.com/users/riteshshrv/following{/other_user}","gists_url":"https://api.github.com/users/riteshshrv/gists{/gist_id}","starred_url":"https://api.github.com/users/riteshshrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riteshshrv/subscriptions","organizations_url":"https://api.github.com/users/riteshshrv/orgs","repos_url":"https://api.github.com/users/riteshshrv/repos","events_url":"https://api.github.com/users/riteshshrv/events{/privacy}","received_events_url":"https://api.github.com/users/riteshshrv/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-30T22:18:31Z","updated_at":"2015-12-30T22:21:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5936f9f7de575fea67b5d59daa1ea5c4750df9b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/33/commits","review_comments_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/33/comments","review_comment_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/issues/33/comments","statuses_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/statuses/345ee908a3c22bcfa4a4c1b7a4f08d3c4db4f0ea","head":{"label":"riteshshrv:3.4","ref":"3.4","sha":"345ee908a3c22bcfa4a4c1b7a4f08d3c4db4f0ea","user":{"login":"riteshshrv","id":6908014,"avatar_url":"https://avatars.githubusercontent.com/u/6908014?v=3","gravatar_id":"","url":"https://api.github.com/users/riteshshrv","html_url":"https://github.com/riteshshrv","followers_url":"https://api.github.com/users/riteshshrv/followers","following_url":"https://api.github.com/users/riteshshrv/following{/other_user}","gists_url":"https://api.github.com/users/riteshshrv/gists{/gist_id}","starred_url":"https://api.github.com/users/riteshshrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riteshshrv/subscriptions","organizations_url":"https://api.github.com/users/riteshshrv/orgs","repos_url":"https://api.github.com/users/riteshshrv/repos","events_url":"https://api.github.com/users/riteshshrv/events{/privacy}","received_events_url":"https://api.github.com/users/riteshshrv/received_events","type":"User","site_admin":false},"repo":{"id":48819442,"name":"trytond-shipping-endicia","full_name":"riteshshrv/trytond-shipping-endicia","owner":{"login":"riteshshrv","id":6908014,"avatar_url":"https://avatars.githubusercontent.com/u/6908014?v=3","gravatar_id":"","url":"https://api.github.com/users/riteshshrv","html_url":"https://github.com/riteshshrv","followers_url":"https://api.github.com/users/riteshshrv/followers","following_url":"https://api.github.com/users/riteshshrv/following{/other_user}","gists_url":"https://api.github.com/users/riteshshrv/gists{/gist_id}","starred_url":"https://api.github.com/users/riteshshrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riteshshrv/subscriptions","organizations_url":"https://api.github.com/users/riteshshrv/orgs","repos_url":"https://api.github.com/users/riteshshrv/repos","events_url":"https://api.github.com/users/riteshshrv/events{/privacy}","received_events_url":"https://api.github.com/users/riteshshrv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/riteshshrv/trytond-shipping-endicia","description":"Trytond Shipping Endicia","fork":true,"url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia","forks_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/forks","keys_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/teams","hooks_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/hooks","issue_events_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/issues/events{/number}","events_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/events","assignees_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/assignees{/user}","branches_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/branches{/branch}","tags_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/tags","blobs_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/git/refs{/sha}","trees_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/statuses/{sha}","languages_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/languages","stargazers_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/stargazers","contributors_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/contributors","subscribers_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/subscribers","subscription_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/subscription","commits_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/commits{/sha}","git_commits_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/git/commits{/sha}","comments_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/comments{/number}","issue_comment_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/issues/comments{/number}","contents_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/contents/{+path}","compare_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/merges","archive_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/downloads","issues_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/issues{/number}","pulls_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/pulls{/number}","milestones_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/milestones{/number}","notifications_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/labels{/name}","releases_url":"https://api.github.com/repos/riteshshrv/trytond-shipping-endicia/releases{/id}","created_at":"2015-12-30T21:06:34Z","updated_at":"2015-12-30T21:06:34Z","pushed_at":"2015-12-30T22:17:21Z","git_url":"git://github.com/riteshshrv/trytond-shipping-endicia.git","ssh_url":"git@github.com:riteshshrv/trytond-shipping-endicia.git","clone_url":"https://github.com/riteshshrv/trytond-shipping-endicia.git","svn_url":"https://github.com/riteshshrv/trytond-shipping-endicia","homepage":"","size":8808,"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":"3.4"}},"base":{"label":"fulfilio:3.4","ref":"3.4","sha":"36eeab929bfb571b2a1a2711c1643441839a3923","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":39757653,"name":"trytond-shipping-endicia","full_name":"fulfilio/trytond-shipping-endicia","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-shipping-endicia","description":"Trytond Shipping Endicia","fork":false,"url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia","forks_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/forks","keys_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/teams","hooks_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/hooks","issue_events_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/issues/events{/number}","events_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/events","assignees_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/assignees{/user}","branches_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/branches{/branch}","tags_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/tags","blobs_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/git/refs{/sha}","trees_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/statuses/{sha}","languages_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/languages","stargazers_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/stargazers","contributors_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/contributors","subscribers_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/subscribers","subscription_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/subscription","commits_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/commits{/sha}","git_commits_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/git/commits{/sha}","comments_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/comments{/number}","issue_comment_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/issues/comments{/number}","contents_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/contents/{+path}","compare_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/merges","archive_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/downloads","issues_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/issues{/number}","pulls_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls{/number}","milestones_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/milestones{/number}","notifications_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/labels{/name}","releases_url":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/releases{/id}","created_at":"2015-07-27T05:59:14Z","updated_at":"2015-08-28T12:21:37Z","pushed_at":"2015-12-30T22:18:31Z","git_url":"git://github.com/fulfilio/trytond-shipping-endicia.git","ssh_url":"git@github.com:fulfilio/trytond-shipping-endicia.git","clone_url":"https://github.com/fulfilio/trytond-shipping-endicia.git","svn_url":"https://github.com/fulfilio/trytond-shipping-endicia","homepage":"","size":9284,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/33"},"html":{"href":"https://github.com/fulfilio/trytond-shipping-endicia/pull/33"},"issue":{"href":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/issues/33"},"comments":{"href":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/fulfilio/trytond-shipping-endicia/statuses/345ee908a3c22bcfa4a4c1b7a4f08d3c4db4f0ea"}}}}