{"action":"closed","number":25890,"pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/25890","id":202782812,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNzgyODEy","html_url":"https://github.com/odoo/odoo/pull/25890","diff_url":"https://github.com/odoo/odoo/pull/25890.diff","patch_url":"https://github.com/odoo/odoo/pull/25890.patch","issue_url":"https://api.github.com/repos/odoo/odoo/issues/25890","number":25890,"state":"closed","locked":false,"title":"[FIX] In the case of customer refunds, the quantity must be negative in the invoice report","user":{"login":"alnslang","id":2770987,"node_id":"MDQ6VXNlcjI3NzA5ODc=","avatar_url":"https://avatars0.githubusercontent.com/u/2770987?v=4","gravatar_id":"","url":"https://api.github.com/users/alnslang","html_url":"https://github.com/alnslang","followers_url":"https://api.github.com/users/alnslang/followers","following_url":"https://api.github.com/users/alnslang/following{/other_user}","gists_url":"https://api.github.com/users/alnslang/gists{/gist_id}","starred_url":"https://api.github.com/users/alnslang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alnslang/subscriptions","organizations_url":"https://api.github.com/users/alnslang/orgs","repos_url":"https://api.github.com/users/alnslang/repos","events_url":"https://api.github.com/users/alnslang/events{/privacy}","received_events_url":"https://api.github.com/users/alnslang/received_events","type":"User","site_admin":false},"body":"Description of the issue/feature this PR addresses:\r\nCreate a customer invoice with 2 product A and refund 1 product A. Display account.invoice.report for this custumer. The quantity should be 1 not 3.\r\n\r\nCurrent behavior before PR:\r\n\r\nDesired behavior after PR is merged:\r\nThe quantity is 1 not 3 after merged\r\n\r\n\r\n\r\n--\r\nI confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr\r\n","created_at":"2018-07-20T08:41:53Z","updated_at":"2018-08-29T14:26:28Z","closed_at":"2018-08-29T14:26:28Z","merged_at":null,"merge_commit_sha":"b4fe6dd5b19fa48a59ba568f1c38f80fe378c986","assignee":null,"assignees":[],"requested_reviewers":[{"login":"qdp-odoo","id":7628598,"node_id":"MDQ6VXNlcjc2Mjg1OTg=","avatar_url":"https://avatars2.githubusercontent.com/u/7628598?v=4","gravatar_id":"","url":"https://api.github.com/users/qdp-odoo","html_url":"https://github.com/qdp-odoo","followers_url":"https://api.github.com/users/qdp-odoo/followers","following_url":"https://api.github.com/users/qdp-odoo/following{/other_user}","gists_url":"https://api.github.com/users/qdp-odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/qdp-odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qdp-odoo/subscriptions","organizations_url":"https://api.github.com/users/qdp-odoo/orgs","repos_url":"https://api.github.com/users/qdp-odoo/repos","events_url":"https://api.github.com/users/qdp-odoo/events{/privacy}","received_events_url":"https://api.github.com/users/qdp-odoo/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":620800387,"node_id":"MDU6TGFiZWw2MjA4MDAzODc=","url":"https://api.github.com/repos/odoo/odoo/labels/Accounting","name":"Accounting","color":"ac0000","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/odoo/odoo/pulls/25890/commits","review_comments_url":"https://api.github.com/repos/odoo/odoo/pulls/25890/comments","review_comment_url":"https://api.github.com/repos/odoo/odoo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/25890/comments","statuses_url":"https://api.github.com/repos/odoo/odoo/statuses/800a079c36d33c4107e064c4e33960352ff21b2c","head":{"label":"syleam:10.0-fix-compute-refund-invoice-report","ref":"10.0-fix-compute-refund-invoice-report","sha":"800a079c36d33c4107e064c4e33960352ff21b2c","user":{"login":"syleam","id":2770992,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NzA5OTI=","avatar_url":"https://avatars1.githubusercontent.com/u/2770992?v=4","gravatar_id":"","url":"https://api.github.com/users/syleam","html_url":"https://github.com/syleam","followers_url":"https://api.github.com/users/syleam/followers","following_url":"https://api.github.com/users/syleam/following{/other_user}","gists_url":"https://api.github.com/users/syleam/gists{/gist_id}","starred_url":"https://api.github.com/users/syleam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syleam/subscriptions","organizations_url":"https://api.github.com/users/syleam/orgs","repos_url":"https://api.github.com/users/syleam/repos","events_url":"https://api.github.com/users/syleam/events{/privacy}","received_events_url":"https://api.github.com/users/syleam/received_events","type":"Organization","site_admin":false},"repo":{"id":19848027,"node_id":"MDEwOlJlcG9zaXRvcnkxOTg0ODAyNw==","name":"odoo","full_name":"syleam/odoo","owner":{"login":"syleam","id":2770992,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3NzA5OTI=","avatar_url":"https://avatars1.githubusercontent.com/u/2770992?v=4","gravatar_id":"","url":"https://api.github.com/users/syleam","html_url":"https://github.com/syleam","followers_url":"https://api.github.com/users/syleam/followers","following_url":"https://api.github.com/users/syleam/following{/other_user}","gists_url":"https://api.github.com/users/syleam/gists{/gist_id}","starred_url":"https://api.github.com/users/syleam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syleam/subscriptions","organizations_url":"https://api.github.com/users/syleam/orgs","repos_url":"https://api.github.com/users/syleam/repos","events_url":"https://api.github.com/users/syleam/events{/privacy}","received_events_url":"https://api.github.com/users/syleam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/syleam/odoo","description":"Odoo (formerly OpenERP). Open Source Business Apps.","fork":true,"url":"https://api.github.com/repos/syleam/odoo","forks_url":"https://api.github.com/repos/syleam/odoo/forks","keys_url":"https://api.github.com/repos/syleam/odoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syleam/odoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syleam/odoo/teams","hooks_url":"https://api.github.com/repos/syleam/odoo/hooks","issue_events_url":"https://api.github.com/repos/syleam/odoo/issues/events{/number}","events_url":"https://api.github.com/repos/syleam/odoo/events","assignees_url":"https://api.github.com/repos/syleam/odoo/assignees{/user}","branches_url":"https://api.github.com/repos/syleam/odoo/branches{/branch}","tags_url":"https://api.github.com/repos/syleam/odoo/tags","blobs_url":"https://api.github.com/repos/syleam/odoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syleam/odoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syleam/odoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/syleam/odoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syleam/odoo/statuses/{sha}","languages_url":"https://api.github.com/repos/syleam/odoo/languages","stargazers_url":"https://api.github.com/repos/syleam/odoo/stargazers","contributors_url":"https://api.github.com/repos/syleam/odoo/contributors","subscribers_url":"https://api.github.com/repos/syleam/odoo/subscribers","subscription_url":"https://api.github.com/repos/syleam/odoo/subscription","commits_url":"https://api.github.com/repos/syleam/odoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/syleam/odoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/syleam/odoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/syleam/odoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/syleam/odoo/contents/{+path}","compare_url":"https://api.github.com/repos/syleam/odoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syleam/odoo/merges","archive_url":"https://api.github.com/repos/syleam/odoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syleam/odoo/downloads","issues_url":"https://api.github.com/repos/syleam/odoo/issues{/number}","pulls_url":"https://api.github.com/repos/syleam/odoo/pulls{/number}","milestones_url":"https://api.github.com/repos/syleam/odoo/milestones{/number}","notifications_url":"https://api.github.com/repos/syleam/odoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syleam/odoo/labels{/name}","releases_url":"https://api.github.com/repos/syleam/odoo/releases{/id}","deployments_url":"https://api.github.com/repos/syleam/odoo/deployments","created_at":"2014-05-16T07:23:05Z","updated_at":"2016-11-02T10:49:12Z","pushed_at":"2018-07-20T08:39:15Z","git_url":"git://github.com/syleam/odoo.git","ssh_url":"git@github.com:syleam/odoo.git","clone_url":"https://github.com/syleam/odoo.git","svn_url":"https://github.com/syleam/odoo","homepage":"https://www.odoo.com","size":2040247,"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":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"odoo:10.0","ref":"10.0","sha":"ee746b52cd3f05b74b908eda77b5f7356b2ec3e9","user":{"login":"odoo","id":6368483,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzNjg0ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/6368483?v=4","gravatar_id":"","url":"https://api.github.com/users/odoo","html_url":"https://github.com/odoo","followers_url":"https://api.github.com/users/odoo/followers","following_url":"https://api.github.com/users/odoo/following{/other_user}","gists_url":"https://api.github.com/users/odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odoo/subscriptions","organizations_url":"https://api.github.com/users/odoo/orgs","repos_url":"https://api.github.com/users/odoo/repos","events_url":"https://api.github.com/users/odoo/events{/privacy}","received_events_url":"https://api.github.com/users/odoo/received_events","type":"Organization","site_admin":false},"repo":{"id":19745004,"node_id":"MDEwOlJlcG9zaXRvcnkxOTc0NTAwNA==","name":"odoo","full_name":"odoo/odoo","owner":{"login":"odoo","id":6368483,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzNjg0ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/6368483?v=4","gravatar_id":"","url":"https://api.github.com/users/odoo","html_url":"https://github.com/odoo","followers_url":"https://api.github.com/users/odoo/followers","following_url":"https://api.github.com/users/odoo/following{/other_user}","gists_url":"https://api.github.com/users/odoo/gists{/gist_id}","starred_url":"https://api.github.com/users/odoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odoo/subscriptions","organizations_url":"https://api.github.com/users/odoo/orgs","repos_url":"https://api.github.com/users/odoo/repos","events_url":"https://api.github.com/users/odoo/events{/privacy}","received_events_url":"https://api.github.com/users/odoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/odoo/odoo","description":"Odoo. Open Source Apps To Grow Your Business.","fork":false,"url":"https://api.github.com/repos/odoo/odoo","forks_url":"https://api.github.com/repos/odoo/odoo/forks","keys_url":"https://api.github.com/repos/odoo/odoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odoo/odoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odoo/odoo/teams","hooks_url":"https://api.github.com/repos/odoo/odoo/hooks","issue_events_url":"https://api.github.com/repos/odoo/odoo/issues/events{/number}","events_url":"https://api.github.com/repos/odoo/odoo/events","assignees_url":"https://api.github.com/repos/odoo/odoo/assignees{/user}","branches_url":"https://api.github.com/repos/odoo/odoo/branches{/branch}","tags_url":"https://api.github.com/repos/odoo/odoo/tags","blobs_url":"https://api.github.com/repos/odoo/odoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odoo/odoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odoo/odoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/odoo/odoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odoo/odoo/statuses/{sha}","languages_url":"https://api.github.com/repos/odoo/odoo/languages","stargazers_url":"https://api.github.com/repos/odoo/odoo/stargazers","contributors_url":"https://api.github.com/repos/odoo/odoo/contributors","subscribers_url":"https://api.github.com/repos/odoo/odoo/subscribers","subscription_url":"https://api.github.com/repos/odoo/odoo/subscription","commits_url":"https://api.github.com/repos/odoo/odoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/odoo/odoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/odoo/odoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/odoo/odoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/odoo/odoo/contents/{+path}","compare_url":"https://api.github.com/repos/odoo/odoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odoo/odoo/merges","archive_url":"https://api.github.com/repos/odoo/odoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odoo/odoo/downloads","issues_url":"https://api.github.com/repos/odoo/odoo/issues{/number}","pulls_url":"https://api.github.com/repos/odoo/odoo/pulls{/number}","milestones_url":"https://api.github.com/repos/odoo/odoo/milestones{/number}","notifications_url":"https://api.github.com/repos/odoo/odoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odoo/odoo/labels{/name}","releases_url":"https://api.github.com/repos/odoo/odoo/releases{/id}","deployments_url":"https://api.github.com/repos/odoo/odoo/deployments","created_at":"2014-05-13T15:38:58Z","updated_at":"2018-08-29T13:59:57Z","pushed_at":"2018-08-29T14:24:31Z","git_url":"git://github.com/odoo/odoo.git","ssh_url":"git@github.com:odoo/odoo.git","clone_url":"https://github.com/odoo/odoo.git","svn_url":"https://github.com/odoo/odoo","homepage":"https://www.odoo.com","size":2157366,"stargazers_count":10863,"watchers_count":10863,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8730,"mirror_url":null,"archived":false,"open_issues_count":1682,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":8730,"open_issues":1682,"watchers":10863,"default_branch":"11.0"}},"_links":{"self":{"href":"https://api.github.com/repos/odoo/odoo/pulls/25890"},"html":{"href":"https://github.com/odoo/odoo/pull/25890"},"issue":{"href":"https://api.github.com/repos/odoo/odoo/issues/25890"},"comments":{"href":"https://api.github.com/repos/odoo/odoo/issues/25890/comments"},"review_comments":{"href":"https://api.github.com/repos/odoo/odoo/pulls/25890/comments"},"review_comment":{"href":"https://api.github.com/repos/odoo/odoo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/odoo/odoo/pulls/25890/commits"},"statuses":{"href":"https://api.github.com/repos/odoo/odoo/statuses/800a079c36d33c4107e064c4e33960352ff21b2c"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":null,"comments":4,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":3,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"simongoffin"}}