GitHub PullRequestReviewCommentEvent at 2014-11-24 10:02:37
Repository: sale-workflow
Actor: sebastienbeau
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/OCA/sale-workflow/pulls/comments/20780921","id":20780921,"diff_hunk":"@@ -0,0 +1,32 @@\n+# -*- coding: utf-8 -*-\n+##############################################################################\n+#\n+#  licence AGPL version 3 or later\n+#  see licence in __openerp__.py or http://www.gnu.org/licenses/agpl-3.0.txt\n+#  Copyright (C) 2014 Akretion (http://www.akretion.com).\n+#  @author Adrien CHAUSSENDE <adrien.chaussende@akretion.com>\n+#\n+##############################################################################\n+\n+from osv import orm\n+\n+class SaleOrder(orm.Model):\n+    _inherit = 'sale.order'\n+\n+    def action_cancel(self, cr, uid, ids, context=None):\n+        mrp_prod_obj = self.pool.get('mrp.production')\n+        picking_obj = self.pool.get('stock.picking')\n+        mo_ids = mrp_prod_obj.search(\n+            cr, uid, [('sale_order_id','in',ids)], context=context\n+        )\n+        picking_ids = False\n+        for mo in mrp_prod_obj.browse(cr, uid, mo_ids, context=context):","path":"sale_cancel_mrp/sale.py","position":23,"original_position":23,"commit_id":"2e726d5db8e928d1daf7799ce16461e76809f2c3","original_commit_id":"2e726d5db8e928d1daf7799ce16461e76809f2c3","user":{"login":"sebastienbeau","id":1164578,"avatar_url":"https://avatars.githubusercontent.com/u/1164578?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienbeau","html_url":"https://github.com/sebastienbeau","followers_url":"https://api.github.com/users/sebastienbeau/followers","following_url":"https://api.github.com/users/sebastienbeau/following{/other_user}","gists_url":"https://api.github.com/users/sebastienbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienbeau/subscriptions","organizations_url":"https://api.github.com/users/sebastienbeau/orgs","repos_url":"https://api.github.com/users/sebastienbeau/repos","events_url":"https://api.github.com/users/sebastienbeau/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienbeau/received_events","type":"User","site_admin":false},"body":"Test if it possible to cancel the internal picking and the manuacturing order if not add log","created_at":"2014-11-24T10:02:37Z","updated_at":"2014-11-24T10:02:37Z","html_url":"https://github.com/OCA/sale-workflow/pull/70#discussion_r20780921","pull_request_url":"https://api.github.com/repos/OCA/sale-workflow/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/comments/20780921"},"html":{"href":"https://github.com/OCA/sale-workflow/pull/70#discussion_r20780921"},"pull_request":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/sale-workflow/pulls/70","id":24851156,"html_url":"https://github.com/OCA/sale-workflow/pull/70","diff_url":"https://github.com/OCA/sale-workflow/pull/70.diff","patch_url":"https://github.com/OCA/sale-workflow/pull/70.patch","issue_url":"https://api.github.com/repos/OCA/sale-workflow/issues/70","number":70,"state":"open","locked":false,"title":"[ADD] Modules sale_cancel_mrp and sale_mrp_link","user":{"login":"achaussende","id":6266416,"avatar_url":"https://avatars.githubusercontent.com/u/6266416?v=3","gravatar_id":"","url":"https://api.github.com/users/achaussende","html_url":"https://github.com/achaussende","followers_url":"https://api.github.com/users/achaussende/followers","following_url":"https://api.github.com/users/achaussende/following{/other_user}","gists_url":"https://api.github.com/users/achaussende/gists{/gist_id}","starred_url":"https://api.github.com/users/achaussende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achaussende/subscriptions","organizations_url":"https://api.github.com/users/achaussende/orgs","repos_url":"https://api.github.com/users/achaussende/repos","events_url":"https://api.github.com/users/achaussende/events{/privacy}","received_events_url":"https://api.github.com/users/achaussende/received_events","type":"User","site_admin":false},"body":"OpenERP 7.0 module to cancel a sale order and by the same time,  related manufacturing orders. Uses another module that links the sale order to generated manufacturing orders.","created_at":"2014-11-21T16:30:40Z","updated_at":"2014-11-24T10:02:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10fd0ffd5433c803dcd198d4c1abfcb62a9032f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/sale-workflow/pulls/70/commits","review_comments_url":"https://api.github.com/repos/OCA/sale-workflow/pulls/70/comments","review_comment_url":"https://api.github.com/repos/OCA/sale-workflow/pulls/comments/{number}","comments_url":"https://api.github.com/repos/OCA/sale-workflow/issues/70/comments","statuses_url":"https://api.github.com/repos/OCA/sale-workflow/statuses/2e726d5db8e928d1daf7799ce16461e76809f2c3","head":{"label":"akretion:7.0-sale-cancel-mrp","ref":"7.0-sale-cancel-mrp","sha":"2e726d5db8e928d1daf7799ce16461e76809f2c3","user":{"login":"akretion","id":1853423,"avatar_url":"https://avatars.githubusercontent.com/u/1853423?v=3","gravatar_id":"","url":"https://api.github.com/users/akretion","html_url":"https://github.com/akretion","followers_url":"https://api.github.com/users/akretion/followers","following_url":"https://api.github.com/users/akretion/following{/other_user}","gists_url":"https://api.github.com/users/akretion/gists{/gist_id}","starred_url":"https://api.github.com/users/akretion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akretion/subscriptions","organizations_url":"https://api.github.com/users/akretion/orgs","repos_url":"https://api.github.com/users/akretion/repos","events_url":"https://api.github.com/users/akretion/events{/privacy}","received_events_url":"https://api.github.com/users/akretion/received_events","type":"Organization","site_admin":false},"repo":{"id":23385877,"name":"sale-workflow","full_name":"akretion/sale-workflow","owner":{"login":"akretion","id":1853423,"avatar_url":"https://avatars.githubusercontent.com/u/1853423?v=3","gravatar_id":"","url":"https://api.github.com/users/akretion","html_url":"https://github.com/akretion","followers_url":"https://api.github.com/users/akretion/followers","following_url":"https://api.github.com/users/akretion/following{/other_user}","gists_url":"https://api.github.com/users/akretion/gists{/gist_id}","starred_url":"https://api.github.com/users/akretion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akretion/subscriptions","organizations_url":"https://api.github.com/users/akretion/orgs","repos_url":"https://api.github.com/users/akretion/repos","events_url":"https://api.github.com/users/akretion/events{/privacy}","received_events_url":"https://api.github.com/users/akretion/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akretion/sale-workflow","description":"","fork":true,"url":"https://api.github.com/repos/akretion/sale-workflow","forks_url":"https://api.github.com/repos/akretion/sale-workflow/forks","keys_url":"https://api.github.com/repos/akretion/sale-workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akretion/sale-workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akretion/sale-workflow/teams","hooks_url":"https://api.github.com/repos/akretion/sale-workflow/hooks","issue_events_url":"https://api.github.com/repos/akretion/sale-workflow/issues/events{/number}","events_url":"https://api.github.com/repos/akretion/sale-workflow/events","assignees_url":"https://api.github.com/repos/akretion/sale-workflow/assignees{/user}","branches_url":"https://api.github.com/repos/akretion/sale-workflow/branches{/branch}","tags_url":"https://api.github.com/repos/akretion/sale-workflow/tags","blobs_url":"https://api.github.com/repos/akretion/sale-workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akretion/sale-workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akretion/sale-workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/akretion/sale-workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akretion/sale-workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/akretion/sale-workflow/languages","stargazers_url":"https://api.github.com/repos/akretion/sale-workflow/stargazers","contributors_url":"https://api.github.com/repos/akretion/sale-workflow/contributors","subscribers_url":"https://api.github.com/repos/akretion/sale-workflow/subscribers","subscription_url":"https://api.github.com/repos/akretion/sale-workflow/subscription","commits_url":"https://api.github.com/repos/akretion/sale-workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/akretion/sale-workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/akretion/sale-workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/akretion/sale-workflow/issues/comments/{number}","contents_url":"https://api.github.com/repos/akretion/sale-workflow/contents/{+path}","compare_url":"https://api.github.com/repos/akretion/sale-workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akretion/sale-workflow/merges","archive_url":"https://api.github.com/repos/akretion/sale-workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akretion/sale-workflow/downloads","issues_url":"https://api.github.com/repos/akretion/sale-workflow/issues{/number}","pulls_url":"https://api.github.com/repos/akretion/sale-workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/akretion/sale-workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/akretion/sale-workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akretion/sale-workflow/labels{/name}","releases_url":"https://api.github.com/repos/akretion/sale-workflow/releases{/id}","created_at":"2014-08-27T10:31:07Z","updated_at":"2014-11-18T11:58:19Z","pushed_at":"2014-11-21T16:01:56Z","git_url":"git://github.com/akretion/sale-workflow.git","ssh_url":"git@github.com:akretion/sale-workflow.git","clone_url":"https://github.com/akretion/sale-workflow.git","svn_url":"https://github.com/akretion/sale-workflow","homepage":null,"size":802,"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":"8.0"}},"base":{"label":"OCA:7.0","ref":"7.0","sha":"c66cc1f00a6f96fb461c1a3020d69e9597ceaf24","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":20882412,"name":"sale-workflow","full_name":"OCA/sale-workflow","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/sale-workflow","description":"","fork":false,"url":"https://api.github.com/repos/OCA/sale-workflow","forks_url":"https://api.github.com/repos/OCA/sale-workflow/forks","keys_url":"https://api.github.com/repos/OCA/sale-workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/sale-workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/sale-workflow/teams","hooks_url":"https://api.github.com/repos/OCA/sale-workflow/hooks","issue_events_url":"https://api.github.com/repos/OCA/sale-workflow/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/sale-workflow/events","assignees_url":"https://api.github.com/repos/OCA/sale-workflow/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/sale-workflow/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/sale-workflow/tags","blobs_url":"https://api.github.com/repos/OCA/sale-workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/sale-workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/sale-workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/sale-workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/sale-workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/sale-workflow/languages","stargazers_url":"https://api.github.com/repos/OCA/sale-workflow/stargazers","contributors_url":"https://api.github.com/repos/OCA/sale-workflow/contributors","subscribers_url":"https://api.github.com/repos/OCA/sale-workflow/subscribers","subscription_url":"https://api.github.com/repos/OCA/sale-workflow/subscription","commits_url":"https://api.github.com/repos/OCA/sale-workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/sale-workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/sale-workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/sale-workflow/issues/comments/{number}","contents_url":"https://api.github.com/repos/OCA/sale-workflow/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/sale-workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/sale-workflow/merges","archive_url":"https://api.github.com/repos/OCA/sale-workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/sale-workflow/downloads","issues_url":"https://api.github.com/repos/OCA/sale-workflow/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/sale-workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/sale-workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/sale-workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/sale-workflow/labels{/name}","releases_url":"https://api.github.com/repos/OCA/sale-workflow/releases{/id}","created_at":"2014-06-16T11:26:39Z","updated_at":"2014-11-19T12:07:10Z","pushed_at":"2014-11-21T19:35:10Z","git_url":"git://github.com/OCA/sale-workflow.git","ssh_url":"git@github.com:OCA/sale-workflow.git","clone_url":"https://github.com/OCA/sale-workflow.git","svn_url":"https://github.com/OCA/sale-workflow","homepage":null,"size":2152,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":17,"forks":27,"open_issues":17,"watchers":4,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/70"},"html":{"href":"https://github.com/OCA/sale-workflow/pull/70"},"issue":{"href":"https://api.github.com/repos/OCA/sale-workflow/issues/70"},"comments":{"href":"https://api.github.com/repos/OCA/sale-workflow/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/OCA/sale-workflow/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/sale-workflow/statuses/2e726d5db8e928d1daf7799ce16461e76809f2c3"}}}}