{"action":"created","comment":{"url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/comments/85445767","pull_request_review_id":6162393,"id":85445767,"diff_hunk":"@@ -0,0 +1,78 @@\n+# -*- coding: utf-8 -*-\n+# © 2016 OpenSynergy Indonesia\n+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).\n+\n+from openerp import api, models, fields\n+from openerp.exceptions import Warning as UserError\n+from openerp import _\n+from lxml import etree\n+\n+\n+class PurchaseRequestLineMakePurchaseOrder(models.TransientModel):\n+    _inherit = \"purchase.request.line.make.purchase.order\"\n+\n+    @api.model\n+    def _get_order_type(self):\n+        val = []\n+        obj_purchase_request_line = self.env['purchase.request.line']\n+        active_ids = self.env.context['active_ids'] or []\n+\n+        for line in obj_purchase_request_line.browse(active_ids):\n+            if not val:\n+                val.append(line.request_id.order_type_id.id)","path":"purchase_request_type_to_rfq/wizard/purchase_request_line_make_purchase_order.py","position":22,"original_position":22,"commit_id":"7c2760a84642f542174376bf611913fc41f7c754","original_commit_id":"7c2760a84642f542174376bf611913fc41f7c754","user":{"login":"andhit-r","id":1947376,"avatar_url":"https://avatars.githubusercontent.com/u/1947376?v=3","gravatar_id":"","url":"https://api.github.com/users/andhit-r","html_url":"https://github.com/andhit-r","followers_url":"https://api.github.com/users/andhit-r/followers","following_url":"https://api.github.com/users/andhit-r/following{/other_user}","gists_url":"https://api.github.com/users/andhit-r/gists{/gist_id}","starred_url":"https://api.github.com/users/andhit-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andhit-r/subscriptions","organizations_url":"https://api.github.com/users/andhit-r/orgs","repos_url":"https://api.github.com/users/andhit-r/repos","events_url":"https://api.github.com/users/andhit-r/events{/privacy}","received_events_url":"https://api.github.com/users/andhit-r/received_events","type":"User","site_admin":false},"body":"val = line.order_type_id.id","created_at":"2016-10-27T23:05:53Z","updated_at":"2016-10-27T23:12:12Z","html_url":"https://github.com/open-synergy/opnsynid-purchase-workflow/pull/17#discussion_r85445767","pull_request_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/comments/85445767"},"html":{"href":"https://github.com/open-synergy/opnsynid-purchase-workflow/pull/17#discussion_r85445767"},"pull_request":{"href":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/17","id":90963615,"html_url":"https://github.com/open-synergy/opnsynid-purchase-workflow/pull/17","diff_url":"https://github.com/open-synergy/opnsynid-purchase-workflow/pull/17.diff","patch_url":"https://github.com/open-synergy/opnsynid-purchase-workflow/pull/17.patch","issue_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/issues/17","number":17,"state":"open","locked":false,"title":"[8.0] Adding module purchase_request_type_to_rfq","user":{"login":"mikevhe18","id":5608217,"avatar_url":"https://avatars.githubusercontent.com/u/5608217?v=3","gravatar_id":"","url":"https://api.github.com/users/mikevhe18","html_url":"https://github.com/mikevhe18","followers_url":"https://api.github.com/users/mikevhe18/followers","following_url":"https://api.github.com/users/mikevhe18/following{/other_user}","gists_url":"https://api.github.com/users/mikevhe18/gists{/gist_id}","starred_url":"https://api.github.com/users/mikevhe18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikevhe18/subscriptions","organizations_url":"https://api.github.com/users/mikevhe18/orgs","repos_url":"https://api.github.com/users/mikevhe18/repos","events_url":"https://api.github.com/users/mikevhe18/events{/privacy}","received_events_url":"https://api.github.com/users/mikevhe18/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-26T09:07:28Z","updated_at":"2016-10-27T23:12:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f6e3321c3d5f9620994c3f8ebcd4626065202eb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/17/commits","review_comments_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/17/comments","review_comment_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/issues/17/comments","statuses_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/statuses/7c2760a84642f542174376bf611913fc41f7c754","head":{"label":"mikevhe18:8.0-purchase_request_type_to_rfq","ref":"8.0-purchase_request_type_to_rfq","sha":"7c2760a84642f542174376bf611913fc41f7c754","user":{"login":"mikevhe18","id":5608217,"avatar_url":"https://avatars.githubusercontent.com/u/5608217?v=3","gravatar_id":"","url":"https://api.github.com/users/mikevhe18","html_url":"https://github.com/mikevhe18","followers_url":"https://api.github.com/users/mikevhe18/followers","following_url":"https://api.github.com/users/mikevhe18/following{/other_user}","gists_url":"https://api.github.com/users/mikevhe18/gists{/gist_id}","starred_url":"https://api.github.com/users/mikevhe18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikevhe18/subscriptions","organizations_url":"https://api.github.com/users/mikevhe18/orgs","repos_url":"https://api.github.com/users/mikevhe18/repos","events_url":"https://api.github.com/users/mikevhe18/events{/privacy}","received_events_url":"https://api.github.com/users/mikevhe18/received_events","type":"User","site_admin":false},"repo":{"id":57937128,"name":"opnsynid-purchase-workflow","full_name":"mikevhe18/opnsynid-purchase-workflow","owner":{"login":"mikevhe18","id":5608217,"avatar_url":"https://avatars.githubusercontent.com/u/5608217?v=3","gravatar_id":"","url":"https://api.github.com/users/mikevhe18","html_url":"https://github.com/mikevhe18","followers_url":"https://api.github.com/users/mikevhe18/followers","following_url":"https://api.github.com/users/mikevhe18/following{/other_user}","gists_url":"https://api.github.com/users/mikevhe18/gists{/gist_id}","starred_url":"https://api.github.com/users/mikevhe18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikevhe18/subscriptions","organizations_url":"https://api.github.com/users/mikevhe18/orgs","repos_url":"https://api.github.com/users/mikevhe18/repos","events_url":"https://api.github.com/users/mikevhe18/events{/privacy}","received_events_url":"https://api.github.com/users/mikevhe18/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikevhe18/opnsynid-purchase-workflow","description":null,"fork":true,"url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow","forks_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/forks","keys_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/teams","hooks_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/hooks","issue_events_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/issues/events{/number}","events_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/events","assignees_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/assignees{/user}","branches_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/branches{/branch}","tags_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/tags","blobs_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/languages","stargazers_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/stargazers","contributors_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/contributors","subscribers_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/subscribers","subscription_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/subscription","commits_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/contents/{+path}","compare_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/merges","archive_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/downloads","issues_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/issues{/number}","pulls_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/labels{/name}","releases_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/releases{/id}","deployments_url":"https://api.github.com/repos/mikevhe18/opnsynid-purchase-workflow/deployments","created_at":"2016-05-03T02:56:57Z","updated_at":"2016-05-03T02:56:58Z","pushed_at":"2016-10-27T19:49:18Z","git_url":"git://github.com/mikevhe18/opnsynid-purchase-workflow.git","ssh_url":"git@github.com:mikevhe18/opnsynid-purchase-workflow.git","clone_url":"https://github.com/mikevhe18/opnsynid-purchase-workflow.git","svn_url":"https://github.com/mikevhe18/opnsynid-purchase-workflow","homepage":null,"size":88,"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":"open-synergy:8.0","ref":"8.0","sha":"66668ecc611c2c2331a820c9b587e1deefe49509","user":{"login":"open-synergy","id":5608327,"avatar_url":"https://avatars.githubusercontent.com/u/5608327?v=3","gravatar_id":"","url":"https://api.github.com/users/open-synergy","html_url":"https://github.com/open-synergy","followers_url":"https://api.github.com/users/open-synergy/followers","following_url":"https://api.github.com/users/open-synergy/following{/other_user}","gists_url":"https://api.github.com/users/open-synergy/gists{/gist_id}","starred_url":"https://api.github.com/users/open-synergy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-synergy/subscriptions","organizations_url":"https://api.github.com/users/open-synergy/orgs","repos_url":"https://api.github.com/users/open-synergy/repos","events_url":"https://api.github.com/users/open-synergy/events{/privacy}","received_events_url":"https://api.github.com/users/open-synergy/received_events","type":"Organization","site_admin":false},"repo":{"id":55754624,"name":"opnsynid-purchase-workflow","full_name":"open-synergy/opnsynid-purchase-workflow","owner":{"login":"open-synergy","id":5608327,"avatar_url":"https://avatars.githubusercontent.com/u/5608327?v=3","gravatar_id":"","url":"https://api.github.com/users/open-synergy","html_url":"https://github.com/open-synergy","followers_url":"https://api.github.com/users/open-synergy/followers","following_url":"https://api.github.com/users/open-synergy/following{/other_user}","gists_url":"https://api.github.com/users/open-synergy/gists{/gist_id}","starred_url":"https://api.github.com/users/open-synergy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-synergy/subscriptions","organizations_url":"https://api.github.com/users/open-synergy/orgs","repos_url":"https://api.github.com/users/open-synergy/repos","events_url":"https://api.github.com/users/open-synergy/events{/privacy}","received_events_url":"https://api.github.com/users/open-synergy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-synergy/opnsynid-purchase-workflow","description":null,"fork":false,"url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow","forks_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/forks","keys_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/teams","hooks_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/hooks","issue_events_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/issues/events{/number}","events_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/events","assignees_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/assignees{/user}","branches_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/branches{/branch}","tags_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/tags","blobs_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/languages","stargazers_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/stargazers","contributors_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/contributors","subscribers_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/subscribers","subscription_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/subscription","commits_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/contents/{+path}","compare_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/merges","archive_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/downloads","issues_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/issues{/number}","pulls_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/labels{/name}","releases_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/releases{/id}","deployments_url":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/deployments","created_at":"2016-04-08T06:07:33Z","updated_at":"2016-04-25T21:28:47Z","pushed_at":"2016-10-27T22:58:31Z","git_url":"git://github.com/open-synergy/opnsynid-purchase-workflow.git","ssh_url":"git@github.com:open-synergy/opnsynid-purchase-workflow.git","clone_url":"https://github.com/open-synergy/opnsynid-purchase-workflow.git","svn_url":"https://github.com/open-synergy/opnsynid-purchase-workflow","homepage":null,"size":80,"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":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/17"},"html":{"href":"https://github.com/open-synergy/opnsynid-purchase-workflow/pull/17"},"issue":{"href":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/issues/17"},"comments":{"href":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/open-synergy/opnsynid-purchase-workflow/statuses/7c2760a84642f542174376bf611913fc41f7c754"}}}}
{"actor":{"display_login":"andhit-r"}}