{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/project/pulls/comments/92953200","pull_request_review_id":13474385,"id":92953200,"diff_hunk":"@@ -1,25 +1,22 @@\n <?xml version=\"1.0\" encoding=\"utf-8\"?>\n-<openerp>\n-  <data>\n+<odoo>\n \n     <record id=\"view_project_task_form_materials\" model=\"ir.ui.view\">\n-      <field name=\"name\">project.task.form.materials</field>\n-      <field name=\"model\">project.task</field>\n-      <field name=\"inherit_id\" ref=\"project.view_task_form2\"/>\n-      <field name=\"arch\" type=\"xml\">\n-\n-        <field position=\"after\" name=\"work_ids\">\n-          <!--Materials used-->\n-          <field name=\"material_ids\" groups=\"project.group_tasks_work_on_tasks\">\n-            <tree string=\"Materials used\" editable=\"top\">\n-              <field name=\"product_id\"/>\n-              <field name=\"quantity\"/>\n-            </tree>\n-          </field>\n+        <field name=\"name\">project.task.form.materials</field>\n+        <field name=\"model\">project.task</field>\n+        <field name=\"inherit_id\" ref=\"project_timesheet.view_task_form2_inherited\"/>\n+        <field name=\"arch\" type=\"xml\">\n+            <xpath expr=\"//notebook/page[@groups='project.group_tasks_work_on_tasks,project.group_time_work_estimation_tasks']\" position=\"after\">","path":"project_task_materials/views/project_view.xml","position":24,"original_position":24,"commit_id":"377d952964a7c75cb5e761d85ce9f1ea0261fe11","original_commit_id":"377d952964a7c75cb5e761d85ce9f1ea0261fe11","user":{"login":"pedrobaeza","id":7165771,"avatar_url":"https://avatars.githubusercontent.com/u/7165771?v=3","gravatar_id":"","url":"https://api.github.com/users/pedrobaeza","html_url":"https://github.com/pedrobaeza","followers_url":"https://api.github.com/users/pedrobaeza/followers","following_url":"https://api.github.com/users/pedrobaeza/following{/other_user}","gists_url":"https://api.github.com/users/pedrobaeza/gists{/gist_id}","starred_url":"https://api.github.com/users/pedrobaeza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedrobaeza/subscriptions","organizations_url":"https://api.github.com/users/pedrobaeza/orgs","repos_url":"https://api.github.com/users/pedrobaeza/repos","events_url":"https://api.github.com/users/pedrobaeza/events{/privacy}","received_events_url":"https://api.github.com/users/pedrobaeza/received_events","type":"User","site_admin":false},"body":"What you can do is to get a field that is inside that page, and use `ancestor`. Example: https://github.com/OCA/delivery-carrier/pull/113/files#diff-66ac07ed3b099c94da0b3e7d3a01ed85R16","created_at":"2016-12-18T22:53:25Z","updated_at":"2016-12-18T22:53:47Z","html_url":"https://github.com/OCA/project/pull/207#discussion_r92953200","pull_request_url":"https://api.github.com/repos/OCA/project/pulls/207","_links":{"self":{"href":"https://api.github.com/repos/OCA/project/pulls/comments/92953200"},"html":{"href":"https://github.com/OCA/project/pull/207#discussion_r92953200"},"pull_request":{"href":"https://api.github.com/repos/OCA/project/pulls/207"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/project/pulls/207","id":98470933,"html_url":"https://github.com/OCA/project/pull/207","diff_url":"https://github.com/OCA/project/pull/207.diff","patch_url":"https://github.com/OCA/project/pull/207.patch","issue_url":"https://api.github.com/repos/OCA/project/issues/207","number":207,"state":"open","locked":false,"title":"[9.0] [MIG] project_task_materials module","user":{"login":"cubells","id":4386443,"avatar_url":"https://avatars.githubusercontent.com/u/4386443?v=3","gravatar_id":"","url":"https://api.github.com/users/cubells","html_url":"https://github.com/cubells","followers_url":"https://api.github.com/users/cubells/followers","following_url":"https://api.github.com/users/cubells/following{/other_user}","gists_url":"https://api.github.com/users/cubells/gists{/gist_id}","starred_url":"https://api.github.com/users/cubells/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubells/subscriptions","organizations_url":"https://api.github.com/users/cubells/orgs","repos_url":"https://api.github.com/users/cubells/repos","events_url":"https://api.github.com/users/cubells/events{/privacy}","received_events_url":"https://api.github.com/users/cubells/received_events","type":"User","site_admin":false},"body":"- Added README\r\n- Updated views\r\n\r\ncc @Tecnativa\r\n","created_at":"2016-12-18T10:50:48Z","updated_at":"2016-12-18T22:53:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fac898d41858d8aec871af099d652d0a89e04b3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OCA/project/pulls/207/commits","review_comments_url":"https://api.github.com/repos/OCA/project/pulls/207/comments","review_comment_url":"https://api.github.com/repos/OCA/project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/project/issues/207/comments","statuses_url":"https://api.github.com/repos/OCA/project/statuses/377d952964a7c75cb5e761d85ce9f1ea0261fe11","head":{"label":"Tecnativa:9.0-mig-project_task_materials","ref":"9.0-mig-project_task_materials","sha":"377d952964a7c75cb5e761d85ce9f1ea0261fe11","user":{"login":"Tecnativa","id":18120193,"avatar_url":"https://avatars.githubusercontent.com/u/18120193?v=3","gravatar_id":"","url":"https://api.github.com/users/Tecnativa","html_url":"https://github.com/Tecnativa","followers_url":"https://api.github.com/users/Tecnativa/followers","following_url":"https://api.github.com/users/Tecnativa/following{/other_user}","gists_url":"https://api.github.com/users/Tecnativa/gists{/gist_id}","starred_url":"https://api.github.com/users/Tecnativa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tecnativa/subscriptions","organizations_url":"https://api.github.com/users/Tecnativa/orgs","repos_url":"https://api.github.com/users/Tecnativa/repos","events_url":"https://api.github.com/users/Tecnativa/events{/privacy}","received_events_url":"https://api.github.com/users/Tecnativa/received_events","type":"Organization","site_admin":false},"repo":{"id":56607279,"name":"project","full_name":"Tecnativa/project","owner":{"login":"Tecnativa","id":18120193,"avatar_url":"https://avatars.githubusercontent.com/u/18120193?v=3","gravatar_id":"","url":"https://api.github.com/users/Tecnativa","html_url":"https://github.com/Tecnativa","followers_url":"https://api.github.com/users/Tecnativa/followers","following_url":"https://api.github.com/users/Tecnativa/following{/other_user}","gists_url":"https://api.github.com/users/Tecnativa/gists{/gist_id}","starred_url":"https://api.github.com/users/Tecnativa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tecnativa/subscriptions","organizations_url":"https://api.github.com/users/Tecnativa/orgs","repos_url":"https://api.github.com/users/Tecnativa/repos","events_url":"https://api.github.com/users/Tecnativa/events{/privacy}","received_events_url":"https://api.github.com/users/Tecnativa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tecnativa/project","description":"Odoo Project Management and Services Company Addons","fork":true,"url":"https://api.github.com/repos/Tecnativa/project","forks_url":"https://api.github.com/repos/Tecnativa/project/forks","keys_url":"https://api.github.com/repos/Tecnativa/project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tecnativa/project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tecnativa/project/teams","hooks_url":"https://api.github.com/repos/Tecnativa/project/hooks","issue_events_url":"https://api.github.com/repos/Tecnativa/project/issues/events{/number}","events_url":"https://api.github.com/repos/Tecnativa/project/events","assignees_url":"https://api.github.com/repos/Tecnativa/project/assignees{/user}","branches_url":"https://api.github.com/repos/Tecnativa/project/branches{/branch}","tags_url":"https://api.github.com/repos/Tecnativa/project/tags","blobs_url":"https://api.github.com/repos/Tecnativa/project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tecnativa/project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tecnativa/project/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tecnativa/project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tecnativa/project/statuses/{sha}","languages_url":"https://api.github.com/repos/Tecnativa/project/languages","stargazers_url":"https://api.github.com/repos/Tecnativa/project/stargazers","contributors_url":"https://api.github.com/repos/Tecnativa/project/contributors","subscribers_url":"https://api.github.com/repos/Tecnativa/project/subscribers","subscription_url":"https://api.github.com/repos/Tecnativa/project/subscription","commits_url":"https://api.github.com/repos/Tecnativa/project/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tecnativa/project/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tecnativa/project/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tecnativa/project/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tecnativa/project/contents/{+path}","compare_url":"https://api.github.com/repos/Tecnativa/project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tecnativa/project/merges","archive_url":"https://api.github.com/repos/Tecnativa/project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tecnativa/project/downloads","issues_url":"https://api.github.com/repos/Tecnativa/project/issues{/number}","pulls_url":"https://api.github.com/repos/Tecnativa/project/pulls{/number}","milestones_url":"https://api.github.com/repos/Tecnativa/project/milestones{/number}","notifications_url":"https://api.github.com/repos/Tecnativa/project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tecnativa/project/labels{/name}","releases_url":"https://api.github.com/repos/Tecnativa/project/releases{/id}","deployments_url":"https://api.github.com/repos/Tecnativa/project/deployments","created_at":"2016-04-19T15:08:30Z","updated_at":"2016-04-19T15:08:31Z","pushed_at":"2016-12-18T22:43:49Z","git_url":"git://github.com/Tecnativa/project.git","ssh_url":"git@github.com:Tecnativa/project.git","clone_url":"https://github.com/Tecnativa/project.git","svn_url":"https://github.com/Tecnativa/project","homepage":"","size":1828,"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":"OCA:9.0","ref":"9.0","sha":"40faf2c1d504fc934cfa705efa0a72bd3d6cb42e","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":20896145,"name":"project","full_name":"OCA/project","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/project","description":"Odoo Project Management and Services Company Addons","fork":false,"url":"https://api.github.com/repos/OCA/project","forks_url":"https://api.github.com/repos/OCA/project/forks","keys_url":"https://api.github.com/repos/OCA/project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/project/teams","hooks_url":"https://api.github.com/repos/OCA/project/hooks","issue_events_url":"https://api.github.com/repos/OCA/project/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/project/events","assignees_url":"https://api.github.com/repos/OCA/project/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/project/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/project/tags","blobs_url":"https://api.github.com/repos/OCA/project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/project/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/project/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/project/languages","stargazers_url":"https://api.github.com/repos/OCA/project/stargazers","contributors_url":"https://api.github.com/repos/OCA/project/contributors","subscribers_url":"https://api.github.com/repos/OCA/project/subscribers","subscription_url":"https://api.github.com/repos/OCA/project/subscription","commits_url":"https://api.github.com/repos/OCA/project/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/project/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/project/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/project/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/project/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/project/merges","archive_url":"https://api.github.com/repos/OCA/project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/project/downloads","issues_url":"https://api.github.com/repos/OCA/project/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/project/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/project/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/project/labels{/name}","releases_url":"https://api.github.com/repos/OCA/project/releases{/id}","deployments_url":"https://api.github.com/repos/OCA/project/deployments","created_at":"2014-06-16T18:40:45Z","updated_at":"2016-12-18T14:52:26Z","pushed_at":"2016-12-18T22:43:49Z","git_url":"git://github.com/OCA/project.git","ssh_url":"git@github.com:OCA/project.git","clone_url":"https://github.com/OCA/project.git","svn_url":"https://github.com/OCA/project","homepage":"","size":2178,"stargazers_count":45,"watchers_count":45,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":139,"mirror_url":null,"open_issues_count":42,"forks":139,"open_issues":42,"watchers":45,"default_branch":"10.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/project/pulls/207"},"html":{"href":"https://github.com/OCA/project/pull/207"},"issue":{"href":"https://api.github.com/repos/OCA/project/issues/207"},"comments":{"href":"https://api.github.com/repos/OCA/project/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/project/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/project/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/project/statuses/377d952964a7c75cb5e761d85ce9f1ea0261fe11"}}}}
{"actor":{"display_login":"pedrobaeza"}}