{"action":"created","comment":{"url":"https://api.github.com/repos/pabi2/pb2_generic/pulls/comments/56476064","id":56476064,"diff_hunk":"@@ -0,0 +1,37 @@\n+# -*- coding: utf-8 -*-\n+\n+from openerp import models, fields, api\n+\n+\n+class AccountVoucher(models.Model):\n+    _inherit = \"account.voucher\"\n+\n+    cancel_move_id = fields.Many2one(\n+        'account.move',\n+        'Cancelled Journal Entry',\n+        copy=False\n+        )\n+\n+    @api.multi\n+    def cancel_voucher(self):\n+        \"\"\" Overwrite \"\"\"\n+        if self.env.context is None:","path":"account_cancel_with_reversal/models/account_voucher.py","position":null,"original_position":18,"commit_id":"92a69fcd0048b42e0e00fcea056755c44d0ef61d","original_commit_id":"cfe327957d408453e7f78b95a3f04ee396ed91c6","user":{"login":"mra-odoo","id":7599858,"avatar_url":"https://avatars.githubusercontent.com/u/7599858?v=3","gravatar_id":"","url":"https://api.github.com/users/mra-odoo","html_url":"https://github.com/mra-odoo","followers_url":"https://api.github.com/users/mra-odoo/followers","following_url":"https://api.github.com/users/mra-odoo/following{/other_user}","gists_url":"https://api.github.com/users/mra-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/mra-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mra-odoo/subscriptions","organizations_url":"https://api.github.com/users/mra-odoo/orgs","repos_url":"https://api.github.com/users/mra-odoo/repos","events_url":"https://api.github.com/users/mra-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/mra-odoo/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2016-03-17T09:32:09Z","updated_at":"2016-03-17T09:32:09Z","html_url":"https://github.com/pabi2/pb2_generic/pull/20#discussion_r56476064","pull_request_url":"https://api.github.com/repos/pabi2/pb2_generic/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/pabi2/pb2_generic/pulls/comments/56476064"},"html":{"href":"https://github.com/pabi2/pb2_generic/pull/20#discussion_r56476064"},"pull_request":{"href":"https://api.github.com/repos/pabi2/pb2_generic/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/pabi2/pb2_generic/pulls/20","id":62885578,"html_url":"https://github.com/pabi2/pb2_generic/pull/20","diff_url":"https://github.com/pabi2/pb2_generic/pull/20.diff","patch_url":"https://github.com/pabi2/pb2_generic/pull/20.patch","issue_url":"https://api.github.com/repos/pabi2/pb2_generic/issues/20","number":20,"state":"open","locked":false,"title":"Add account cancel with reversal","user":{"login":"mra-odoo","id":7599858,"avatar_url":"https://avatars.githubusercontent.com/u/7599858?v=3","gravatar_id":"","url":"https://api.github.com/users/mra-odoo","html_url":"https://github.com/mra-odoo","followers_url":"https://api.github.com/users/mra-odoo/followers","following_url":"https://api.github.com/users/mra-odoo/following{/other_user}","gists_url":"https://api.github.com/users/mra-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/mra-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mra-odoo/subscriptions","organizations_url":"https://api.github.com/users/mra-odoo/orgs","repos_url":"https://api.github.com/users/mra-odoo/repos","events_url":"https://api.github.com/users/mra-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/mra-odoo/received_events","type":"User","site_admin":false},"body":"-     New addon \"account_cancel_with_reversal\" based on account_cancel_ex\r\n-     Upgrade to V8 API\r\n-     Coding standard\r\n-     Unit Test (unittest2 only) \r\n\r\n_Ref: /issues/162_","created_at":"2016-03-15T10:45:45Z","updated_at":"2016-03-17T09:32:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a5c7a820f837e73446853af1c9a5a7a3632d29a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pabi2/pb2_generic/pulls/20/commits","review_comments_url":"https://api.github.com/repos/pabi2/pb2_generic/pulls/20/comments","review_comment_url":"https://api.github.com/repos/pabi2/pb2_generic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pabi2/pb2_generic/issues/20/comments","statuses_url":"https://api.github.com/repos/pabi2/pb2_generic/statuses/92a69fcd0048b42e0e00fcea056755c44d0ef61d","head":{"label":"pabi2:add-account_cancel_with_reversal","ref":"add-account_cancel_with_reversal","sha":"92a69fcd0048b42e0e00fcea056755c44d0ef61d","user":{"login":"pabi2","id":17098192,"avatar_url":"https://avatars.githubusercontent.com/u/17098192?v=3","gravatar_id":"","url":"https://api.github.com/users/pabi2","html_url":"https://github.com/pabi2","followers_url":"https://api.github.com/users/pabi2/followers","following_url":"https://api.github.com/users/pabi2/following{/other_user}","gists_url":"https://api.github.com/users/pabi2/gists{/gist_id}","starred_url":"https://api.github.com/users/pabi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabi2/subscriptions","organizations_url":"https://api.github.com/users/pabi2/orgs","repos_url":"https://api.github.com/users/pabi2/repos","events_url":"https://api.github.com/users/pabi2/events{/privacy}","received_events_url":"https://api.github.com/users/pabi2/received_events","type":"User","site_admin":false},"repo":{"id":51205391,"name":"pb2_generic","full_name":"pabi2/pb2_generic","owner":{"login":"pabi2","id":17098192,"avatar_url":"https://avatars.githubusercontent.com/u/17098192?v=3","gravatar_id":"","url":"https://api.github.com/users/pabi2","html_url":"https://github.com/pabi2","followers_url":"https://api.github.com/users/pabi2/followers","following_url":"https://api.github.com/users/pabi2/following{/other_user}","gists_url":"https://api.github.com/users/pabi2/gists{/gist_id}","starred_url":"https://api.github.com/users/pabi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabi2/subscriptions","organizations_url":"https://api.github.com/users/pabi2/orgs","repos_url":"https://api.github.com/users/pabi2/repos","events_url":"https://api.github.com/users/pabi2/events{/privacy}","received_events_url":"https://api.github.com/users/pabi2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pabi2/pb2_generic","description":"","fork":false,"url":"https://api.github.com/repos/pabi2/pb2_generic","forks_url":"https://api.github.com/repos/pabi2/pb2_generic/forks","keys_url":"https://api.github.com/repos/pabi2/pb2_generic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pabi2/pb2_generic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pabi2/pb2_generic/teams","hooks_url":"https://api.github.com/repos/pabi2/pb2_generic/hooks","issue_events_url":"https://api.github.com/repos/pabi2/pb2_generic/issues/events{/number}","events_url":"https://api.github.com/repos/pabi2/pb2_generic/events","assignees_url":"https://api.github.com/repos/pabi2/pb2_generic/assignees{/user}","branches_url":"https://api.github.com/repos/pabi2/pb2_generic/branches{/branch}","tags_url":"https://api.github.com/repos/pabi2/pb2_generic/tags","blobs_url":"https://api.github.com/repos/pabi2/pb2_generic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pabi2/pb2_generic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pabi2/pb2_generic/git/refs{/sha}","trees_url":"https://api.github.com/repos/pabi2/pb2_generic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pabi2/pb2_generic/statuses/{sha}","languages_url":"https://api.github.com/repos/pabi2/pb2_generic/languages","stargazers_url":"https://api.github.com/repos/pabi2/pb2_generic/stargazers","contributors_url":"https://api.github.com/repos/pabi2/pb2_generic/contributors","subscribers_url":"https://api.github.com/repos/pabi2/pb2_generic/subscribers","subscription_url":"https://api.github.com/repos/pabi2/pb2_generic/subscription","commits_url":"https://api.github.com/repos/pabi2/pb2_generic/commits{/sha}","git_commits_url":"https://api.github.com/repos/pabi2/pb2_generic/git/commits{/sha}","comments_url":"https://api.github.com/repos/pabi2/pb2_generic/comments{/number}","issue_comment_url":"https://api.github.com/repos/pabi2/pb2_generic/issues/comments{/number}","contents_url":"https://api.github.com/repos/pabi2/pb2_generic/contents/{+path}","compare_url":"https://api.github.com/repos/pabi2/pb2_generic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pabi2/pb2_generic/merges","archive_url":"https://api.github.com/repos/pabi2/pb2_generic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pabi2/pb2_generic/downloads","issues_url":"https://api.github.com/repos/pabi2/pb2_generic/issues{/number}","pulls_url":"https://api.github.com/repos/pabi2/pb2_generic/pulls{/number}","milestones_url":"https://api.github.com/repos/pabi2/pb2_generic/milestones{/number}","notifications_url":"https://api.github.com/repos/pabi2/pb2_generic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pabi2/pb2_generic/labels{/name}","releases_url":"https://api.github.com/repos/pabi2/pb2_generic/releases{/id}","deployments_url":"https://api.github.com/repos/pabi2/pb2_generic/deployments","created_at":"2016-02-06T14:22:41Z","updated_at":"2016-03-17T08:30:55Z","pushed_at":"2016-03-17T09:23:31Z","git_url":"git://github.com/pabi2/pb2_generic.git","ssh_url":"git@github.com:pabi2/pb2_generic.git","clone_url":"https://github.com/pabi2/pb2_generic.git","svn_url":"https://github.com/pabi2/pb2_generic","homepage":null,"size":54382,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"pabi2:master","ref":"master","sha":"f959438032f45f12c869c12ed404751a939d2ca1","user":{"login":"pabi2","id":17098192,"avatar_url":"https://avatars.githubusercontent.com/u/17098192?v=3","gravatar_id":"","url":"https://api.github.com/users/pabi2","html_url":"https://github.com/pabi2","followers_url":"https://api.github.com/users/pabi2/followers","following_url":"https://api.github.com/users/pabi2/following{/other_user}","gists_url":"https://api.github.com/users/pabi2/gists{/gist_id}","starred_url":"https://api.github.com/users/pabi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabi2/subscriptions","organizations_url":"https://api.github.com/users/pabi2/orgs","repos_url":"https://api.github.com/users/pabi2/repos","events_url":"https://api.github.com/users/pabi2/events{/privacy}","received_events_url":"https://api.github.com/users/pabi2/received_events","type":"User","site_admin":false},"repo":{"id":51205391,"name":"pb2_generic","full_name":"pabi2/pb2_generic","owner":{"login":"pabi2","id":17098192,"avatar_url":"https://avatars.githubusercontent.com/u/17098192?v=3","gravatar_id":"","url":"https://api.github.com/users/pabi2","html_url":"https://github.com/pabi2","followers_url":"https://api.github.com/users/pabi2/followers","following_url":"https://api.github.com/users/pabi2/following{/other_user}","gists_url":"https://api.github.com/users/pabi2/gists{/gist_id}","starred_url":"https://api.github.com/users/pabi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pabi2/subscriptions","organizations_url":"https://api.github.com/users/pabi2/orgs","repos_url":"https://api.github.com/users/pabi2/repos","events_url":"https://api.github.com/users/pabi2/events{/privacy}","received_events_url":"https://api.github.com/users/pabi2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pabi2/pb2_generic","description":"","fork":false,"url":"https://api.github.com/repos/pabi2/pb2_generic","forks_url":"https://api.github.com/repos/pabi2/pb2_generic/forks","keys_url":"https://api.github.com/repos/pabi2/pb2_generic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pabi2/pb2_generic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pabi2/pb2_generic/teams","hooks_url":"https://api.github.com/repos/pabi2/pb2_generic/hooks","issue_events_url":"https://api.github.com/repos/pabi2/pb2_generic/issues/events{/number}","events_url":"https://api.github.com/repos/pabi2/pb2_generic/events","assignees_url":"https://api.github.com/repos/pabi2/pb2_generic/assignees{/user}","branches_url":"https://api.github.com/repos/pabi2/pb2_generic/branches{/branch}","tags_url":"https://api.github.com/repos/pabi2/pb2_generic/tags","blobs_url":"https://api.github.com/repos/pabi2/pb2_generic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pabi2/pb2_generic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pabi2/pb2_generic/git/refs{/sha}","trees_url":"https://api.github.com/repos/pabi2/pb2_generic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pabi2/pb2_generic/statuses/{sha}","languages_url":"https://api.github.com/repos/pabi2/pb2_generic/languages","stargazers_url":"https://api.github.com/repos/pabi2/pb2_generic/stargazers","contributors_url":"https://api.github.com/repos/pabi2/pb2_generic/contributors","subscribers_url":"https://api.github.com/repos/pabi2/pb2_generic/subscribers","subscription_url":"https://api.github.com/repos/pabi2/pb2_generic/subscription","commits_url":"https://api.github.com/repos/pabi2/pb2_generic/commits{/sha}","git_commits_url":"https://api.github.com/repos/pabi2/pb2_generic/git/commits{/sha}","comments_url":"https://api.github.com/repos/pabi2/pb2_generic/comments{/number}","issue_comment_url":"https://api.github.com/repos/pabi2/pb2_generic/issues/comments{/number}","contents_url":"https://api.github.com/repos/pabi2/pb2_generic/contents/{+path}","compare_url":"https://api.github.com/repos/pabi2/pb2_generic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pabi2/pb2_generic/merges","archive_url":"https://api.github.com/repos/pabi2/pb2_generic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pabi2/pb2_generic/downloads","issues_url":"https://api.github.com/repos/pabi2/pb2_generic/issues{/number}","pulls_url":"https://api.github.com/repos/pabi2/pb2_generic/pulls{/number}","milestones_url":"https://api.github.com/repos/pabi2/pb2_generic/milestones{/number}","notifications_url":"https://api.github.com/repos/pabi2/pb2_generic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pabi2/pb2_generic/labels{/name}","releases_url":"https://api.github.com/repos/pabi2/pb2_generic/releases{/id}","deployments_url":"https://api.github.com/repos/pabi2/pb2_generic/deployments","created_at":"2016-02-06T14:22:41Z","updated_at":"2016-03-17T08:30:55Z","pushed_at":"2016-03-17T09:23:31Z","git_url":"git://github.com/pabi2/pb2_generic.git","ssh_url":"git@github.com:pabi2/pb2_generic.git","clone_url":"https://github.com/pabi2/pb2_generic.git","svn_url":"https://github.com/pabi2/pb2_generic","homepage":null,"size":54382,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pabi2/pb2_generic/pulls/20"},"html":{"href":"https://github.com/pabi2/pb2_generic/pull/20"},"issue":{"href":"https://api.github.com/repos/pabi2/pb2_generic/issues/20"},"comments":{"href":"https://api.github.com/repos/pabi2/pb2_generic/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/pabi2/pb2_generic/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/pabi2/pb2_generic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pabi2/pb2_generic/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/pabi2/pb2_generic/statuses/92a69fcd0048b42e0e00fcea056755c44d0ef61d"}}}}