{"action":"opened","number":22,"pull_request":{"url":"https://api.github.com/repos/OCA/sale-reporting/pulls/22","id":27743065,"html_url":"https://github.com/OCA/sale-reporting/pull/22","diff_url":"https://github.com/OCA/sale-reporting/pull/22.diff","patch_url":"https://github.com/OCA/sale-reporting/pull/22.patch","issue_url":"https://api.github.com/repos/OCA/sale-reporting/issues/22","number":22,"state":"open","locked":false,"title":"Use the _prepare method instead of write","user":{"login":"guewen","id":417223,"avatar_url":"https://avatars.githubusercontent.com/u/417223?v=3","gravatar_id":"","url":"https://api.github.com/users/guewen","html_url":"https://github.com/guewen","followers_url":"https://api.github.com/users/guewen/followers","following_url":"https://api.github.com/users/guewen/following{/other_user}","gists_url":"https://api.github.com/users/guewen/gists{/gist_id}","starred_url":"https://api.github.com/users/guewen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guewen/subscriptions","organizations_url":"https://api.github.com/users/guewen/orgs","repos_url":"https://api.github.com/users/guewen/repos","events_url":"https://api.github.com/users/guewen/events{/privacy}","received_events_url":"https://api.github.com/users/guewen/received_events","type":"User","site_admin":false},"body":"It also fixes an assert when action_invoice_create is called\non several ids\n\n```\nassert len(ids) == 1, \"1 ID expected, got: %s\" % (ids, )\nAssertionError: 1 ID expected, got: [39, 38]\n```","created_at":"2015-01-21T08:42:44Z","updated_at":"2015-01-21T08:42:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OCA/sale-reporting/pulls/22/commits","review_comments_url":"https://api.github.com/repos/OCA/sale-reporting/pulls/22/comments","review_comment_url":"https://api.github.com/repos/OCA/sale-reporting/pulls/comments/{number}","comments_url":"https://api.github.com/repos/OCA/sale-reporting/issues/22/comments","statuses_url":"https://api.github.com/repos/OCA/sale-reporting/statuses/f9b8694a5ca719ea2b1a122ece3ae6487380d368","head":{"label":"guewen:8.0-sale_comment_template-assert-many-ids","ref":"8.0-sale_comment_template-assert-many-ids","sha":"f9b8694a5ca719ea2b1a122ece3ae6487380d368","user":{"login":"guewen","id":417223,"avatar_url":"https://avatars.githubusercontent.com/u/417223?v=3","gravatar_id":"","url":"https://api.github.com/users/guewen","html_url":"https://github.com/guewen","followers_url":"https://api.github.com/users/guewen/followers","following_url":"https://api.github.com/users/guewen/following{/other_user}","gists_url":"https://api.github.com/users/guewen/gists{/gist_id}","starred_url":"https://api.github.com/users/guewen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guewen/subscriptions","organizations_url":"https://api.github.com/users/guewen/orgs","repos_url":"https://api.github.com/users/guewen/repos","events_url":"https://api.github.com/users/guewen/events{/privacy}","received_events_url":"https://api.github.com/users/guewen/received_events","type":"User","site_admin":false},"repo":{"id":25574959,"name":"sale-reporting","full_name":"guewen/sale-reporting","owner":{"login":"guewen","id":417223,"avatar_url":"https://avatars.githubusercontent.com/u/417223?v=3","gravatar_id":"","url":"https://api.github.com/users/guewen","html_url":"https://github.com/guewen","followers_url":"https://api.github.com/users/guewen/followers","following_url":"https://api.github.com/users/guewen/following{/other_user}","gists_url":"https://api.github.com/users/guewen/gists{/gist_id}","starred_url":"https://api.github.com/users/guewen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guewen/subscriptions","organizations_url":"https://api.github.com/users/guewen/orgs","repos_url":"https://api.github.com/users/guewen/repos","events_url":"https://api.github.com/users/guewen/events{/privacy}","received_events_url":"https://api.github.com/users/guewen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guewen/sale-reporting","description":"","fork":true,"url":"https://api.github.com/repos/guewen/sale-reporting","forks_url":"https://api.github.com/repos/guewen/sale-reporting/forks","keys_url":"https://api.github.com/repos/guewen/sale-reporting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guewen/sale-reporting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guewen/sale-reporting/teams","hooks_url":"https://api.github.com/repos/guewen/sale-reporting/hooks","issue_events_url":"https://api.github.com/repos/guewen/sale-reporting/issues/events{/number}","events_url":"https://api.github.com/repos/guewen/sale-reporting/events","assignees_url":"https://api.github.com/repos/guewen/sale-reporting/assignees{/user}","branches_url":"https://api.github.com/repos/guewen/sale-reporting/branches{/branch}","tags_url":"https://api.github.com/repos/guewen/sale-reporting/tags","blobs_url":"https://api.github.com/repos/guewen/sale-reporting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guewen/sale-reporting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guewen/sale-reporting/git/refs{/sha}","trees_url":"https://api.github.com/repos/guewen/sale-reporting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guewen/sale-reporting/statuses/{sha}","languages_url":"https://api.github.com/repos/guewen/sale-reporting/languages","stargazers_url":"https://api.github.com/repos/guewen/sale-reporting/stargazers","contributors_url":"https://api.github.com/repos/guewen/sale-reporting/contributors","subscribers_url":"https://api.github.com/repos/guewen/sale-reporting/subscribers","subscription_url":"https://api.github.com/repos/guewen/sale-reporting/subscription","commits_url":"https://api.github.com/repos/guewen/sale-reporting/commits{/sha}","git_commits_url":"https://api.github.com/repos/guewen/sale-reporting/git/commits{/sha}","comments_url":"https://api.github.com/repos/guewen/sale-reporting/comments{/number}","issue_comment_url":"https://api.github.com/repos/guewen/sale-reporting/issues/comments/{number}","contents_url":"https://api.github.com/repos/guewen/sale-reporting/contents/{+path}","compare_url":"https://api.github.com/repos/guewen/sale-reporting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guewen/sale-reporting/merges","archive_url":"https://api.github.com/repos/guewen/sale-reporting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guewen/sale-reporting/downloads","issues_url":"https://api.github.com/repos/guewen/sale-reporting/issues{/number}","pulls_url":"https://api.github.com/repos/guewen/sale-reporting/pulls{/number}","milestones_url":"https://api.github.com/repos/guewen/sale-reporting/milestones{/number}","notifications_url":"https://api.github.com/repos/guewen/sale-reporting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guewen/sale-reporting/labels{/name}","releases_url":"https://api.github.com/repos/guewen/sale-reporting/releases{/id}","created_at":"2014-10-22T10:10:30Z","updated_at":"2014-09-10T13:41:58Z","pushed_at":"2015-01-21T08:39:51Z","git_url":"git://github.com/guewen/sale-reporting.git","ssh_url":"git@github.com:guewen/sale-reporting.git","clone_url":"https://github.com/guewen/sale-reporting.git","svn_url":"https://github.com/guewen/sale-reporting","homepage":null,"size":237,"stargazers_count":0,"watchers_count":0,"language":null,"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":"OCA:8.0","ref":"8.0","sha":"5fbb2c1a0e0140ac5495edffb53f07fc29ab5e45","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":20882492,"name":"sale-reporting","full_name":"OCA/sale-reporting","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/sale-reporting","description":"","fork":false,"url":"https://api.github.com/repos/OCA/sale-reporting","forks_url":"https://api.github.com/repos/OCA/sale-reporting/forks","keys_url":"https://api.github.com/repos/OCA/sale-reporting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/sale-reporting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/sale-reporting/teams","hooks_url":"https://api.github.com/repos/OCA/sale-reporting/hooks","issue_events_url":"https://api.github.com/repos/OCA/sale-reporting/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/sale-reporting/events","assignees_url":"https://api.github.com/repos/OCA/sale-reporting/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/sale-reporting/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/sale-reporting/tags","blobs_url":"https://api.github.com/repos/OCA/sale-reporting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/sale-reporting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/sale-reporting/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/sale-reporting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/sale-reporting/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/sale-reporting/languages","stargazers_url":"https://api.github.com/repos/OCA/sale-reporting/stargazers","contributors_url":"https://api.github.com/repos/OCA/sale-reporting/contributors","subscribers_url":"https://api.github.com/repos/OCA/sale-reporting/subscribers","subscription_url":"https://api.github.com/repos/OCA/sale-reporting/subscription","commits_url":"https://api.github.com/repos/OCA/sale-reporting/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/sale-reporting/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/sale-reporting/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/sale-reporting/issues/comments/{number}","contents_url":"https://api.github.com/repos/OCA/sale-reporting/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/sale-reporting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/sale-reporting/merges","archive_url":"https://api.github.com/repos/OCA/sale-reporting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/sale-reporting/downloads","issues_url":"https://api.github.com/repos/OCA/sale-reporting/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/sale-reporting/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/sale-reporting/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/sale-reporting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/sale-reporting/labels{/name}","releases_url":"https://api.github.com/repos/OCA/sale-reporting/releases{/id}","created_at":"2014-06-16T11:30:02Z","updated_at":"2014-12-18T06:42:00Z","pushed_at":"2015-01-16T16:21:53Z","git_url":"git://github.com/OCA/sale-reporting.git","ssh_url":"git@github.com:OCA/sale-reporting.git","clone_url":"https://github.com/OCA/sale-reporting.git","svn_url":"https://github.com/OCA/sale-reporting","homepage":null,"size":476,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":2,"forks":13,"open_issues":2,"watchers":3,"default_branch":"8.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/sale-reporting/pulls/22"},"html":{"href":"https://github.com/OCA/sale-reporting/pull/22"},"issue":{"href":"https://api.github.com/repos/OCA/sale-reporting/issues/22"},"comments":{"href":"https://api.github.com/repos/OCA/sale-reporting/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/sale-reporting/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/sale-reporting/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/OCA/sale-reporting/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/sale-reporting/statuses/f9b8694a5ca719ea2b1a122ece3ae6487380d368"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":30,"changed_files":1}}