{"action":"created","comment":{"url":"https://api.github.com/repos/xie8899/project/pulls/comments/57674083","id":57674083,"diff_hunk":"@@ -453,3 +468,14 @@ class Project(models.Model):\n     @api.depends('br_ids')\n     def _br_count(self):\n         self.br_count = len(self.br_ids)\n+\n+\n+class Task(models.Model):\n+    _inherit = 'project.task'\n+\n+    \"\"\" Link the task and the business requirement \"\"\"\n+    business_requirement_id = fields.Many2one(","path":"business_requirement/models/business.py","position":41,"original_position":41,"commit_id":"b0920e46ab3b61b1580385beea3dab36095f593a","original_commit_id":"b0920e46ab3b61b1580385beea3dab36095f593a","user":{"login":"victormartinelicocorp","id":16461806,"avatar_url":"https://avatars.githubusercontent.com/u/16461806?v=3","gravatar_id":"","url":"https://api.github.com/users/victormartinelicocorp","html_url":"https://github.com/victormartinelicocorp","followers_url":"https://api.github.com/users/victormartinelicocorp/followers","following_url":"https://api.github.com/users/victormartinelicocorp/following{/other_user}","gists_url":"https://api.github.com/users/victormartinelicocorp/gists{/gist_id}","starred_url":"https://api.github.com/users/victormartinelicocorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victormartinelicocorp/subscriptions","organizations_url":"https://api.github.com/users/victormartinelicocorp/orgs","repos_url":"https://api.github.com/users/victormartinelicocorp/repos","events_url":"https://api.github.com/users/victormartinelicocorp/events{/privacy}","received_events_url":"https://api.github.com/users/victormartinelicocorp/received_events","type":"User","site_admin":false},"body":"@duanyp1991 Then I'll create a new version for the related module business_requirement_project\r\n\r\ncc @elicoidal ","created_at":"2016-03-29T05:40:33Z","updated_at":"2016-03-29T05:40:33Z","html_url":"https://github.com/xie8899/project/pull/38#discussion_r57674083","pull_request_url":"https://api.github.com/repos/xie8899/project/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/xie8899/project/pulls/comments/57674083"},"html":{"href":"https://github.com/xie8899/project/pull/38#discussion_r57674083"},"pull_request":{"href":"https://api.github.com/repos/xie8899/project/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/xie8899/project/pulls/38","id":64147455,"html_url":"https://github.com/xie8899/project/pull/38","diff_url":"https://github.com/xie8899/project/pull/38.diff","patch_url":"https://github.com/xie8899/project/pull/38.patch","issue_url":"https://api.github.com/repos/xie8899/project/issues/38","number":38,"state":"open","locked":false,"title":"[IMP] business_requirement: Improve module business_requirement based…","user":{"login":"victormartinelicocorp","id":16461806,"avatar_url":"https://avatars.githubusercontent.com/u/16461806?v=3","gravatar_id":"","url":"https://api.github.com/users/victormartinelicocorp","html_url":"https://github.com/victormartinelicocorp","followers_url":"https://api.github.com/users/victormartinelicocorp/followers","following_url":"https://api.github.com/users/victormartinelicocorp/following{/other_user}","gists_url":"https://api.github.com/users/victormartinelicocorp/gists{/gist_id}","starred_url":"https://api.github.com/users/victormartinelicocorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victormartinelicocorp/subscriptions","organizations_url":"https://api.github.com/users/victormartinelicocorp/orgs","repos_url":"https://api.github.com/users/victormartinelicocorp/repos","events_url":"https://api.github.com/users/victormartinelicocorp/events{/privacy}","received_events_url":"https://api.github.com/users/victormartinelicocorp/received_events","type":"User","site_admin":false},"body":"… on BR000168 - Task 12797\n<a href='#crh-start'></a><a href='#crh-data-%7B%22processed%22%3A%20%5B%22https%3A//github.com/xie8899/project/pull/38%23issuecomment-201596170%22%2C%20%22https%3A//github.com/xie8899/project/pull/38%23discussion_r57542092%22%2C%20%22https%3A//github.com/xie8899/project/pull/38%23discussion_r57553926%22%2C%20%22https%3A//github.com/xie8899/project/pull/38%23discussion_r57671136%22%5D%2C%20%22comments%22%3A%20%7B%22General%20Comment%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/xie8899/project/pull/38%23issuecomment-201596170%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22LGTM%22%2C%20%22created_at%22%3A%20%222016-03-25T23%3A52%3A51Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/7600613%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/elicoidal%22%7D%7D%5D%2C%20%22title%22%3A%20%22General%20Comment%22%7D%2C%20%22Pull%20b0920e46ab3b61b1580385beea3dab36095f593a%20business_requirement/models/business.py%2041%22%3A%20%7B%22html_url%22%3A%20%22https%3A//github.com/xie8899/project/pull/38%23discussion_r57542092%22%2C%20%22comments%22%3A%20%5B%7B%22body%22%3A%20%22%40victormartinelicocorp%20%20When%20we%20use%20the%20wizard%20to%20create%20the%20tasks%2C%20this%20field%20should%20be%20automatically%20assigned.%22%2C%20%22created_at%22%3A%20%222016-03-28T03%3A26%3A04Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/3785252%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/duanyp1991%22%7D%7D%2C%20%7B%22body%22%3A%20%22%40duanyp1991%20actually%20works%20that%20way%20I%20pass%20the%20context%20and%20it%27s%20filled.%20Maybe%20should%20I%20get%20context%20here%20and%20not%20in%20the%20view%3F%20%5Cr%5Cncc%20%40duanyp1991%20%22%2C%20%22created_at%22%3A%20%222016-03-28T08%3A22%3A18Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/16461806%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/victormartinelicocorp%22%7D%7D%2C%20%7B%22body%22%3A%20%22I%20meant%20in%20the%20wizard%20%5C%22generate%20projects%5C%22%22%2C%20%22created_at%22%3A%20%222016-03-29T04%3A36%3A15Z%22%2C%20%22user%22%3A%20%7B%22avatar_url%22%3A%20%22https%3A//avatars.githubusercontent.com/u/3785252%3Fv%3D3%22%2C%20%22html_url%22%3A%20%22https%3A//github.com/duanyp1991%22%7D%7D%5D%2C%20%22title%22%3A%20%22File%3A%20business_requirement/models/business.py%3AL468-482%22%7D%7D%7D'></a>\n<a href='https://www.codereviewhub.com/'><img src='http://www.codereviewhub.com/site/github-bar.png' height=40></a>\n- [ ] <a href='#crh-comment-General Comment'></a> <img src='http://www.codereviewhub.com/site/github-remaining.png' height=16 width=60>&nbsp;<b><a href='https://github.com/xie8899/project/pull/38#issuecomment-201596170'>General Comment</a></b>\n- <a href='https://github.com/elicoidal'><img border=0 src='https://avatars.githubusercontent.com/u/7600613?v=3' height=16 width=16'></a> LGTM\n- [ ] <a href='#crh-comment-Pull b0920e46ab3b61b1580385beea3dab36095f593a business_requirement/models/business.py 41'></a> <img src='http://www.codereviewhub.com/site/github-remaining.png' height=16 width=60>&nbsp;<b><a href='https://github.com/xie8899/project/pull/38#discussion_r57542092'>File: business_requirement/models/business.py:L468-482</a></b>\n- <a href='https://github.com/duanyp1991'><img border=0 src='https://avatars.githubusercontent.com/u/3785252?v=3' height=16 width=16'></a> @victormartinelicocorp  When we use the wizard to create the tasks, this field should be automatically assigned.\n- <a href='https://github.com/victormartinelicocorp'><img border=0 src='https://avatars.githubusercontent.com/u/16461806?v=3' height=16 width=16'></a> @duanyp1991 actually works that way I pass the context and it's filled. Maybe should I get context here and not in the view?\ncc @duanyp1991\n- <a href='https://github.com/duanyp1991'><img border=0 src='https://avatars.githubusercontent.com/u/3785252?v=3' height=16 width=16'></a> I meant in the wizard \"generate projects\"\n\n\n<a href='https://www.codereviewhub.com/xie8899/project/pull/38?mark_as_completed=1'><img src='http://www.codereviewhub.com/site/github-mark-as-completed.png' height=26></a>&nbsp;<a href='https://www.codereviewhub.com/xie8899/project/pull/38?approve=1'><img src='http://www.codereviewhub.com/site/github-approve.png' height=26></a>&nbsp;<a href='https://github.com/xie8899/project/pull/38'><img src='http://www.codereviewhub.com/site/github-refresh.png' height=26></a>\n<a href='#crh-end'></a>","created_at":"2016-03-25T09:50:44Z","updated_at":"2016-03-29T05:40:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddc9a1ee86c9af1b36cc3bbb0bd50156dfefc1a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xie8899/project/pulls/38/commits","review_comments_url":"https://api.github.com/repos/xie8899/project/pulls/38/comments","review_comment_url":"https://api.github.com/repos/xie8899/project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xie8899/project/issues/38/comments","statuses_url":"https://api.github.com/repos/xie8899/project/statuses/b0920e46ab3b61b1580385beea3dab36095f593a","head":{"label":"victormartinelicocorp:gap_analysis_8.0.2-12797-modify-module-business-requirement-to-add-link-in-task-and-link-in-br","ref":"gap_analysis_8.0.2-12797-modify-module-business-requirement-to-add-link-in-task-and-link-in-br","sha":"b0920e46ab3b61b1580385beea3dab36095f593a","user":{"login":"victormartinelicocorp","id":16461806,"avatar_url":"https://avatars.githubusercontent.com/u/16461806?v=3","gravatar_id":"","url":"https://api.github.com/users/victormartinelicocorp","html_url":"https://github.com/victormartinelicocorp","followers_url":"https://api.github.com/users/victormartinelicocorp/followers","following_url":"https://api.github.com/users/victormartinelicocorp/following{/other_user}","gists_url":"https://api.github.com/users/victormartinelicocorp/gists{/gist_id}","starred_url":"https://api.github.com/users/victormartinelicocorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victormartinelicocorp/subscriptions","organizations_url":"https://api.github.com/users/victormartinelicocorp/orgs","repos_url":"https://api.github.com/users/victormartinelicocorp/repos","events_url":"https://api.github.com/users/victormartinelicocorp/events{/privacy}","received_events_url":"https://api.github.com/users/victormartinelicocorp/received_events","type":"User","site_admin":false},"repo":{"id":51131309,"name":"project","full_name":"victormartinelicocorp/project","owner":{"login":"victormartinelicocorp","id":16461806,"avatar_url":"https://avatars.githubusercontent.com/u/16461806?v=3","gravatar_id":"","url":"https://api.github.com/users/victormartinelicocorp","html_url":"https://github.com/victormartinelicocorp","followers_url":"https://api.github.com/users/victormartinelicocorp/followers","following_url":"https://api.github.com/users/victormartinelicocorp/following{/other_user}","gists_url":"https://api.github.com/users/victormartinelicocorp/gists{/gist_id}","starred_url":"https://api.github.com/users/victormartinelicocorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victormartinelicocorp/subscriptions","organizations_url":"https://api.github.com/users/victormartinelicocorp/orgs","repos_url":"https://api.github.com/users/victormartinelicocorp/repos","events_url":"https://api.github.com/users/victormartinelicocorp/events{/privacy}","received_events_url":"https://api.github.com/users/victormartinelicocorp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victormartinelicocorp/project","description":"Odoo Project Management and Services Company Addons","fork":true,"url":"https://api.github.com/repos/victormartinelicocorp/project","forks_url":"https://api.github.com/repos/victormartinelicocorp/project/forks","keys_url":"https://api.github.com/repos/victormartinelicocorp/project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victormartinelicocorp/project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victormartinelicocorp/project/teams","hooks_url":"https://api.github.com/repos/victormartinelicocorp/project/hooks","issue_events_url":"https://api.github.com/repos/victormartinelicocorp/project/issues/events{/number}","events_url":"https://api.github.com/repos/victormartinelicocorp/project/events","assignees_url":"https://api.github.com/repos/victormartinelicocorp/project/assignees{/user}","branches_url":"https://api.github.com/repos/victormartinelicocorp/project/branches{/branch}","tags_url":"https://api.github.com/repos/victormartinelicocorp/project/tags","blobs_url":"https://api.github.com/repos/victormartinelicocorp/project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victormartinelicocorp/project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victormartinelicocorp/project/git/refs{/sha}","trees_url":"https://api.github.com/repos/victormartinelicocorp/project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victormartinelicocorp/project/statuses/{sha}","languages_url":"https://api.github.com/repos/victormartinelicocorp/project/languages","stargazers_url":"https://api.github.com/repos/victormartinelicocorp/project/stargazers","contributors_url":"https://api.github.com/repos/victormartinelicocorp/project/contributors","subscribers_url":"https://api.github.com/repos/victormartinelicocorp/project/subscribers","subscription_url":"https://api.github.com/repos/victormartinelicocorp/project/subscription","commits_url":"https://api.github.com/repos/victormartinelicocorp/project/commits{/sha}","git_commits_url":"https://api.github.com/repos/victormartinelicocorp/project/git/commits{/sha}","comments_url":"https://api.github.com/repos/victormartinelicocorp/project/comments{/number}","issue_comment_url":"https://api.github.com/repos/victormartinelicocorp/project/issues/comments{/number}","contents_url":"https://api.github.com/repos/victormartinelicocorp/project/contents/{+path}","compare_url":"https://api.github.com/repos/victormartinelicocorp/project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victormartinelicocorp/project/merges","archive_url":"https://api.github.com/repos/victormartinelicocorp/project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victormartinelicocorp/project/downloads","issues_url":"https://api.github.com/repos/victormartinelicocorp/project/issues{/number}","pulls_url":"https://api.github.com/repos/victormartinelicocorp/project/pulls{/number}","milestones_url":"https://api.github.com/repos/victormartinelicocorp/project/milestones{/number}","notifications_url":"https://api.github.com/repos/victormartinelicocorp/project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victormartinelicocorp/project/labels{/name}","releases_url":"https://api.github.com/repos/victormartinelicocorp/project/releases{/id}","deployments_url":"https://api.github.com/repos/victormartinelicocorp/project/deployments","created_at":"2016-02-05T06:57:48Z","updated_at":"2016-02-05T06:57:50Z","pushed_at":"2016-03-28T08:39:03Z","git_url":"git://github.com/victormartinelicocorp/project.git","ssh_url":"git@github.com:victormartinelicocorp/project.git","clone_url":"https://github.com/victormartinelicocorp/project.git","svn_url":"https://github.com/victormartinelicocorp/project","homepage":"","size":1712,"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":"9.0"}},"base":{"label":"xie8899:gap_analysis_8.0.2","ref":"gap_analysis_8.0.2","sha":"719cde1a3b53b938611595fb489a450f2cd39d75","user":{"login":"xie8899","id":14543145,"avatar_url":"https://avatars.githubusercontent.com/u/14543145?v=3","gravatar_id":"","url":"https://api.github.com/users/xie8899","html_url":"https://github.com/xie8899","followers_url":"https://api.github.com/users/xie8899/followers","following_url":"https://api.github.com/users/xie8899/following{/other_user}","gists_url":"https://api.github.com/users/xie8899/gists{/gist_id}","starred_url":"https://api.github.com/users/xie8899/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xie8899/subscriptions","organizations_url":"https://api.github.com/users/xie8899/orgs","repos_url":"https://api.github.com/users/xie8899/repos","events_url":"https://api.github.com/users/xie8899/events{/privacy}","received_events_url":"https://api.github.com/users/xie8899/received_events","type":"User","site_admin":false},"repo":{"id":46115685,"name":"project","full_name":"xie8899/project","owner":{"login":"xie8899","id":14543145,"avatar_url":"https://avatars.githubusercontent.com/u/14543145?v=3","gravatar_id":"","url":"https://api.github.com/users/xie8899","html_url":"https://github.com/xie8899","followers_url":"https://api.github.com/users/xie8899/followers","following_url":"https://api.github.com/users/xie8899/following{/other_user}","gists_url":"https://api.github.com/users/xie8899/gists{/gist_id}","starred_url":"https://api.github.com/users/xie8899/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xie8899/subscriptions","organizations_url":"https://api.github.com/users/xie8899/orgs","repos_url":"https://api.github.com/users/xie8899/repos","events_url":"https://api.github.com/users/xie8899/events{/privacy}","received_events_url":"https://api.github.com/users/xie8899/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xie8899/project","description":"Odoo Project Management and Services Company Addons","fork":true,"url":"https://api.github.com/repos/xie8899/project","forks_url":"https://api.github.com/repos/xie8899/project/forks","keys_url":"https://api.github.com/repos/xie8899/project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xie8899/project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xie8899/project/teams","hooks_url":"https://api.github.com/repos/xie8899/project/hooks","issue_events_url":"https://api.github.com/repos/xie8899/project/issues/events{/number}","events_url":"https://api.github.com/repos/xie8899/project/events","assignees_url":"https://api.github.com/repos/xie8899/project/assignees{/user}","branches_url":"https://api.github.com/repos/xie8899/project/branches{/branch}","tags_url":"https://api.github.com/repos/xie8899/project/tags","blobs_url":"https://api.github.com/repos/xie8899/project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xie8899/project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xie8899/project/git/refs{/sha}","trees_url":"https://api.github.com/repos/xie8899/project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xie8899/project/statuses/{sha}","languages_url":"https://api.github.com/repos/xie8899/project/languages","stargazers_url":"https://api.github.com/repos/xie8899/project/stargazers","contributors_url":"https://api.github.com/repos/xie8899/project/contributors","subscribers_url":"https://api.github.com/repos/xie8899/project/subscribers","subscription_url":"https://api.github.com/repos/xie8899/project/subscription","commits_url":"https://api.github.com/repos/xie8899/project/commits{/sha}","git_commits_url":"https://api.github.com/repos/xie8899/project/git/commits{/sha}","comments_url":"https://api.github.com/repos/xie8899/project/comments{/number}","issue_comment_url":"https://api.github.com/repos/xie8899/project/issues/comments{/number}","contents_url":"https://api.github.com/repos/xie8899/project/contents/{+path}","compare_url":"https://api.github.com/repos/xie8899/project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xie8899/project/merges","archive_url":"https://api.github.com/repos/xie8899/project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xie8899/project/downloads","issues_url":"https://api.github.com/repos/xie8899/project/issues{/number}","pulls_url":"https://api.github.com/repos/xie8899/project/pulls{/number}","milestones_url":"https://api.github.com/repos/xie8899/project/milestones{/number}","notifications_url":"https://api.github.com/repos/xie8899/project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xie8899/project/labels{/name}","releases_url":"https://api.github.com/repos/xie8899/project/releases{/id}","deployments_url":"https://api.github.com/repos/xie8899/project/deployments","created_at":"2015-11-13T10:30:48Z","updated_at":"2016-01-07T16:12:56Z","pushed_at":"2016-03-29T03:34:49Z","git_url":"git://github.com/xie8899/project.git","ssh_url":"git@github.com:xie8899/project.git","clone_url":"https://github.com/xie8899/project.git","svn_url":"https://github.com/xie8899/project","homepage":"","size":1723,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/xie8899/project/pulls/38"},"html":{"href":"https://github.com/xie8899/project/pull/38"},"issue":{"href":"https://api.github.com/repos/xie8899/project/issues/38"},"comments":{"href":"https://api.github.com/repos/xie8899/project/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/xie8899/project/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/xie8899/project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xie8899/project/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/xie8899/project/statuses/b0920e46ab3b61b1580385beea3dab36095f593a"}}}}