{"action":"created","comment":{"url":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/comments/58656643","id":58656643,"diff_hunk":"@@ -0,0 +1,36 @@\n+# -*- coding: utf-8 -*-\n+from openerp import fields, models\n+\n+\n+class ResProject(models.Model):\n+    _inherit = 'res.project'\n+\n+    member_ids = fields.One2many(\n+        'res.project.member',\n+        'project_id',\n+        string='Project Member',\n+        copy=False\n+    )\n+\n+\n+class ResProjectMember(models.Model):\n+    _name = 'res.project.member'\n+    _description = 'Project Member'\n+\n+    project_id = fields.Many2one(\n+        'res.project',\n+        string='Project',\n+        required=True,\n+        ondelete='cascade',\n+    )\n+    emp_id = fields.Many2one(","path":"pabi_project_member/models/res_project_member.py","position":26,"original_position":26,"commit_id":"72b7847cca02aefeedc44d89a70a8347353e8e0e","original_commit_id":"72b7847cca02aefeedc44d89a70a8347353e8e0e","user":{"login":"thapanat","id":15207025,"avatar_url":"https://avatars.githubusercontent.com/u/15207025?v=3","gravatar_id":"","url":"https://api.github.com/users/thapanat","html_url":"https://github.com/thapanat","followers_url":"https://api.github.com/users/thapanat/followers","following_url":"https://api.github.com/users/thapanat/following{/other_user}","gists_url":"https://api.github.com/users/thapanat/gists{/gist_id}","starred_url":"https://api.github.com/users/thapanat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thapanat/subscriptions","organizations_url":"https://api.github.com/users/thapanat/orgs","repos_url":"https://api.github.com/users/thapanat/repos","events_url":"https://api.github.com/users/thapanat/events{/privacy}","received_events_url":"https://api.github.com/users/thapanat/received_events","type":"User","site_admin":false},"body":"I solved it.","created_at":"2016-04-06T06:27:57Z","updated_at":"2016-04-06T06:27:57Z","html_url":"https://github.com/pabi2/pb2_base_nstda/pull/11#discussion_r58656643","pull_request_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/comments/58656643"},"html":{"href":"https://github.com/pabi2/pb2_base_nstda/pull/11#discussion_r58656643"},"pull_request":{"href":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/11","id":65274855,"html_url":"https://github.com/pabi2/pb2_base_nstda/pull/11","diff_url":"https://github.com/pabi2/pb2_base_nstda/pull/11.diff","patch_url":"https://github.com/pabi2/pb2_base_nstda/pull/11.patch","issue_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/issues/11","number":11,"state":"open","locked":false,"title":"Nstda thapanat","user":{"login":"thapanat","id":15207025,"avatar_url":"https://avatars.githubusercontent.com/u/15207025?v=3","gravatar_id":"","url":"https://api.github.com/users/thapanat","html_url":"https://github.com/thapanat","followers_url":"https://api.github.com/users/thapanat/followers","following_url":"https://api.github.com/users/thapanat/following{/other_user}","gists_url":"https://api.github.com/users/thapanat/gists{/gist_id}","starred_url":"https://api.github.com/users/thapanat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thapanat/subscriptions","organizations_url":"https://api.github.com/users/thapanat/orgs","repos_url":"https://api.github.com/users/thapanat/repos","events_url":"https://api.github.com/users/thapanat/events{/privacy}","received_events_url":"https://api.github.com/users/thapanat/received_events","type":"User","site_admin":false},"body":"[EHN] Demo data for PABI2's Org Structure\r\n[ADD] PABI2 Workflow configuration, User's profile, Project Memeber","created_at":"2016-04-05T09:40:36Z","updated_at":"2016-04-06T06:27:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3dbd3315fc51751665d283ae6fcb679607fc2b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/11/commits","review_comments_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/11/comments","review_comment_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/issues/11/comments","statuses_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/statuses/72b7847cca02aefeedc44d89a70a8347353e8e0e","head":{"label":"pabi2:nstda_thapanat","ref":"nstda_thapanat","sha":"72b7847cca02aefeedc44d89a70a8347353e8e0e","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":51205413,"name":"pb2_base_nstda","full_name":"pabi2/pb2_base_nstda","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_base_nstda","description":"","fork":false,"url":"https://api.github.com/repos/pabi2/pb2_base_nstda","forks_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/forks","keys_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/teams","hooks_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/hooks","issue_events_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/issues/events{/number}","events_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/events","assignees_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/assignees{/user}","branches_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/branches{/branch}","tags_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/tags","blobs_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/git/refs{/sha}","trees_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/statuses/{sha}","languages_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/languages","stargazers_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/stargazers","contributors_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/contributors","subscribers_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/subscribers","subscription_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/subscription","commits_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/commits{/sha}","git_commits_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/git/commits{/sha}","comments_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/comments{/number}","issue_comment_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/issues/comments{/number}","contents_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/contents/{+path}","compare_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/merges","archive_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/downloads","issues_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/issues{/number}","pulls_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls{/number}","milestones_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/milestones{/number}","notifications_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/labels{/name}","releases_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/releases{/id}","deployments_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/deployments","created_at":"2016-02-06T14:23:22Z","updated_at":"2016-02-06T16:29:11Z","pushed_at":"2016-04-05T12:29:28Z","git_url":"git://github.com/pabi2/pb2_base_nstda.git","ssh_url":"git@github.com:pabi2/pb2_base_nstda.git","clone_url":"https://github.com/pabi2/pb2_base_nstda.git","svn_url":"https://github.com/pabi2/pb2_base_nstda","homepage":null,"size":175,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"pabi2:master","ref":"master","sha":"666d2132a342c6cb294071a3420e45efd424ce1d","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":51205413,"name":"pb2_base_nstda","full_name":"pabi2/pb2_base_nstda","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_base_nstda","description":"","fork":false,"url":"https://api.github.com/repos/pabi2/pb2_base_nstda","forks_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/forks","keys_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/teams","hooks_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/hooks","issue_events_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/issues/events{/number}","events_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/events","assignees_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/assignees{/user}","branches_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/branches{/branch}","tags_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/tags","blobs_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/git/refs{/sha}","trees_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/statuses/{sha}","languages_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/languages","stargazers_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/stargazers","contributors_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/contributors","subscribers_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/subscribers","subscription_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/subscription","commits_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/commits{/sha}","git_commits_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/git/commits{/sha}","comments_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/comments{/number}","issue_comment_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/issues/comments{/number}","contents_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/contents/{+path}","compare_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/merges","archive_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/downloads","issues_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/issues{/number}","pulls_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls{/number}","milestones_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/milestones{/number}","notifications_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/labels{/name}","releases_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/releases{/id}","deployments_url":"https://api.github.com/repos/pabi2/pb2_base_nstda/deployments","created_at":"2016-02-06T14:23:22Z","updated_at":"2016-02-06T16:29:11Z","pushed_at":"2016-04-05T12:29:28Z","git_url":"git://github.com/pabi2/pb2_base_nstda.git","ssh_url":"git@github.com:pabi2/pb2_base_nstda.git","clone_url":"https://github.com/pabi2/pb2_base_nstda.git","svn_url":"https://github.com/pabi2/pb2_base_nstda","homepage":null,"size":175,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/11"},"html":{"href":"https://github.com/pabi2/pb2_base_nstda/pull/11"},"issue":{"href":"https://api.github.com/repos/pabi2/pb2_base_nstda/issues/11"},"comments":{"href":"https://api.github.com/repos/pabi2/pb2_base_nstda/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pabi2/pb2_base_nstda/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/pabi2/pb2_base_nstda/statuses/72b7847cca02aefeedc44d89a70a8347353e8e0e"}}}}