{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/reporting-engine/pulls/comments/126107398","pull_request_review_id":48560632,"id":126107398,"diff_hunk":"@@ -0,0 +1,22 @@\n+# -*- coding: utf-8 -*-\n+# Copyright 2017 Creu Blanca\n+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).\n+\n+from lxml import etree\n+from odoo.tests import common\n+\n+\n+class TestXmlReport(common.TransactionCase):\n+    def test_xml(self):\n+        report_object = self.env['ir.actions.report.xml']\n+        report_name = 'report_xml.demo_report_xml_view'\n+        docs = self.env['res.company'].search([], limit=1)\n+        rep = report_object.render_report(\n+            docs.ids, report_name, {'report_type': u\"qweb-xml\"}","path":"report_xml/tests/test_report_xml.py","position":15,"original_position":15,"commit_id":"81f729d5199c2e50ffdd01a817ff0cccc146154d","original_commit_id":"81f729d5199c2e50ffdd01a817ff0cccc146154d","user":{"login":"jbeficent","id":7683926,"avatar_url":"https://avatars3.githubusercontent.com/u/7683926?v=3","gravatar_id":"","url":"https://api.github.com/users/jbeficent","html_url":"https://github.com/jbeficent","followers_url":"https://api.github.com/users/jbeficent/followers","following_url":"https://api.github.com/users/jbeficent/following{/other_user}","gists_url":"https://api.github.com/users/jbeficent/gists{/gist_id}","starred_url":"https://api.github.com/users/jbeficent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbeficent/subscriptions","organizations_url":"https://api.github.com/users/jbeficent/orgs","repos_url":"https://api.github.com/users/jbeficent/repos","events_url":"https://api.github.com/users/jbeficent/events{/privacy}","received_events_url":"https://api.github.com/users/jbeficent/received_events","type":"User","site_admin":false},"body":"I can see that the usual practice is to call `render_report` not specifying the report_type, as it is looked up inside the method.","created_at":"2017-07-07T09:35:55Z","updated_at":"2017-07-07T09:36:05Z","html_url":"https://github.com/OCA/reporting-engine/pull/143#discussion_r126107398","pull_request_url":"https://api.github.com/repos/OCA/reporting-engine/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/OCA/reporting-engine/pulls/comments/126107398"},"html":{"href":"https://github.com/OCA/reporting-engine/pull/143#discussion_r126107398"},"pull_request":{"href":"https://api.github.com/repos/OCA/reporting-engine/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/reporting-engine/pulls/143","id":126308354,"html_url":"https://github.com/OCA/reporting-engine/pull/143","diff_url":"https://github.com/OCA/reporting-engine/pull/143.diff","patch_url":"https://github.com/OCA/reporting-engine/pull/143.patch","issue_url":"https://api.github.com/repos/OCA/reporting-engine/issues/143","number":143,"state":"open","locked":false,"title":"[MIG] report_xml migration","user":{"login":"etobella","id":28590170,"avatar_url":"https://avatars2.githubusercontent.com/u/28590170?v=3","gravatar_id":"","url":"https://api.github.com/users/etobella","html_url":"https://github.com/etobella","followers_url":"https://api.github.com/users/etobella/followers","following_url":"https://api.github.com/users/etobella/following{/other_user}","gists_url":"https://api.github.com/users/etobella/gists{/gist_id}","starred_url":"https://api.github.com/users/etobella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etobella/subscriptions","organizations_url":"https://api.github.com/users/etobella/orgs","repos_url":"https://api.github.com/users/etobella/repos","events_url":"https://api.github.com/users/etobella/events{/privacy}","received_events_url":"https://api.github.com/users/etobella/received_events","type":"User","site_admin":false},"body":"Migration of report_xml module.","created_at":"2017-06-19T13:53:09Z","updated_at":"2017-07-07T09:36:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"518a90e1f9f56cda5dba46b13a1125a3e6cb060e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/OCA/reporting-engine/pulls/143/commits","review_comments_url":"https://api.github.com/repos/OCA/reporting-engine/pulls/143/comments","review_comment_url":"https://api.github.com/repos/OCA/reporting-engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/reporting-engine/issues/143/comments","statuses_url":"https://api.github.com/repos/OCA/reporting-engine/statuses/81f729d5199c2e50ffdd01a817ff0cccc146154d","head":{"label":"etobella:10.0","ref":"10.0","sha":"81f729d5199c2e50ffdd01a817ff0cccc146154d","user":{"login":"etobella","id":28590170,"avatar_url":"https://avatars2.githubusercontent.com/u/28590170?v=3","gravatar_id":"","url":"https://api.github.com/users/etobella","html_url":"https://github.com/etobella","followers_url":"https://api.github.com/users/etobella/followers","following_url":"https://api.github.com/users/etobella/following{/other_user}","gists_url":"https://api.github.com/users/etobella/gists{/gist_id}","starred_url":"https://api.github.com/users/etobella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etobella/subscriptions","organizations_url":"https://api.github.com/users/etobella/orgs","repos_url":"https://api.github.com/users/etobella/repos","events_url":"https://api.github.com/users/etobella/events{/privacy}","received_events_url":"https://api.github.com/users/etobella/received_events","type":"User","site_admin":false},"repo":{"id":94750308,"name":"reporting-engine","full_name":"etobella/reporting-engine","owner":{"login":"etobella","id":28590170,"avatar_url":"https://avatars2.githubusercontent.com/u/28590170?v=3","gravatar_id":"","url":"https://api.github.com/users/etobella","html_url":"https://github.com/etobella","followers_url":"https://api.github.com/users/etobella/followers","following_url":"https://api.github.com/users/etobella/following{/other_user}","gists_url":"https://api.github.com/users/etobella/gists{/gist_id}","starred_url":"https://api.github.com/users/etobella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etobella/subscriptions","organizations_url":"https://api.github.com/users/etobella/orgs","repos_url":"https://api.github.com/users/etobella/repos","events_url":"https://api.github.com/users/etobella/events{/privacy}","received_events_url":"https://api.github.com/users/etobella/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/etobella/reporting-engine","description":"Odoo Alternative Reporting Engine","fork":true,"url":"https://api.github.com/repos/etobella/reporting-engine","forks_url":"https://api.github.com/repos/etobella/reporting-engine/forks","keys_url":"https://api.github.com/repos/etobella/reporting-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etobella/reporting-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etobella/reporting-engine/teams","hooks_url":"https://api.github.com/repos/etobella/reporting-engine/hooks","issue_events_url":"https://api.github.com/repos/etobella/reporting-engine/issues/events{/number}","events_url":"https://api.github.com/repos/etobella/reporting-engine/events","assignees_url":"https://api.github.com/repos/etobella/reporting-engine/assignees{/user}","branches_url":"https://api.github.com/repos/etobella/reporting-engine/branches{/branch}","tags_url":"https://api.github.com/repos/etobella/reporting-engine/tags","blobs_url":"https://api.github.com/repos/etobella/reporting-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etobella/reporting-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etobella/reporting-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/etobella/reporting-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etobella/reporting-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/etobella/reporting-engine/languages","stargazers_url":"https://api.github.com/repos/etobella/reporting-engine/stargazers","contributors_url":"https://api.github.com/repos/etobella/reporting-engine/contributors","subscribers_url":"https://api.github.com/repos/etobella/reporting-engine/subscribers","subscription_url":"https://api.github.com/repos/etobella/reporting-engine/subscription","commits_url":"https://api.github.com/repos/etobella/reporting-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/etobella/reporting-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/etobella/reporting-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/etobella/reporting-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/etobella/reporting-engine/contents/{+path}","compare_url":"https://api.github.com/repos/etobella/reporting-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etobella/reporting-engine/merges","archive_url":"https://api.github.com/repos/etobella/reporting-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etobella/reporting-engine/downloads","issues_url":"https://api.github.com/repos/etobella/reporting-engine/issues{/number}","pulls_url":"https://api.github.com/repos/etobella/reporting-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/etobella/reporting-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/etobella/reporting-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etobella/reporting-engine/labels{/name}","releases_url":"https://api.github.com/repos/etobella/reporting-engine/releases{/id}","deployments_url":"https://api.github.com/repos/etobella/reporting-engine/deployments","created_at":"2017-06-19T07:45:53Z","updated_at":"2017-06-19T07:45:55Z","pushed_at":"2017-07-07T09:11:12Z","git_url":"git://github.com/etobella/reporting-engine.git","ssh_url":"git@github.com:etobella/reporting-engine.git","clone_url":"https://github.com/etobella/reporting-engine.git","svn_url":"https://github.com/etobella/reporting-engine","homepage":"https://odoo-community.org/project/tools-maintainers-30","size":3131,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"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":"10.0"}},"base":{"label":"OCA:10.0","ref":"10.0","sha":"a22001fad42fa51f794256a5f60909926c742335","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars2.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":20992391,"name":"reporting-engine","full_name":"OCA/reporting-engine","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars2.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/reporting-engine","description":"Odoo Alternative Reporting Engine","fork":false,"url":"https://api.github.com/repos/OCA/reporting-engine","forks_url":"https://api.github.com/repos/OCA/reporting-engine/forks","keys_url":"https://api.github.com/repos/OCA/reporting-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/reporting-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/reporting-engine/teams","hooks_url":"https://api.github.com/repos/OCA/reporting-engine/hooks","issue_events_url":"https://api.github.com/repos/OCA/reporting-engine/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/reporting-engine/events","assignees_url":"https://api.github.com/repos/OCA/reporting-engine/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/reporting-engine/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/reporting-engine/tags","blobs_url":"https://api.github.com/repos/OCA/reporting-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/reporting-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/reporting-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/reporting-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/reporting-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/reporting-engine/languages","stargazers_url":"https://api.github.com/repos/OCA/reporting-engine/stargazers","contributors_url":"https://api.github.com/repos/OCA/reporting-engine/contributors","subscribers_url":"https://api.github.com/repos/OCA/reporting-engine/subscribers","subscription_url":"https://api.github.com/repos/OCA/reporting-engine/subscription","commits_url":"https://api.github.com/repos/OCA/reporting-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/reporting-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/reporting-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/reporting-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/reporting-engine/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/reporting-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/reporting-engine/merges","archive_url":"https://api.github.com/repos/OCA/reporting-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/reporting-engine/downloads","issues_url":"https://api.github.com/repos/OCA/reporting-engine/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/reporting-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/reporting-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/reporting-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/reporting-engine/labels{/name}","releases_url":"https://api.github.com/repos/OCA/reporting-engine/releases{/id}","deployments_url":"https://api.github.com/repos/OCA/reporting-engine/deployments","created_at":"2014-06-19T07:53:41Z","updated_at":"2017-07-06T03:28:44Z","pushed_at":"2017-07-07T09:11:14Z","git_url":"git://github.com/OCA/reporting-engine.git","ssh_url":"git@github.com:OCA/reporting-engine.git","clone_url":"https://github.com/OCA/reporting-engine.git","svn_url":"https://github.com/OCA/reporting-engine","homepage":"https://odoo-community.org/project/tools-maintainers-30","size":3122,"stargazers_count":44,"watchers_count":44,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":155,"mirror_url":null,"open_issues_count":28,"forks":155,"open_issues":28,"watchers":44,"default_branch":"10.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/reporting-engine/pulls/143"},"html":{"href":"https://github.com/OCA/reporting-engine/pull/143"},"issue":{"href":"https://api.github.com/repos/OCA/reporting-engine/issues/143"},"comments":{"href":"https://api.github.com/repos/OCA/reporting-engine/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/reporting-engine/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/reporting-engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/reporting-engine/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/reporting-engine/statuses/81f729d5199c2e50ffdd01a817ff0cccc146154d"}}}}
{"actor":{"display_login":"jbeficent"}}