{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/26947","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/26947/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/26947/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/26947/events","html_url":"https://github.com/odoo/odoo/pull/26947","id":359651959,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MDk1NTU2","number":26947,"title":"[FIX] sale_stock: Wrong delivered qty compute.","user":{"login":"ougc27","id":16998467,"node_id":"MDQ6VXNlcjE2OTk4NDY3","avatar_url":"https://avatars2.githubusercontent.com/u/16998467?v=4","gravatar_id":"","url":"https://api.github.com/users/ougc27","html_url":"https://github.com/ougc27","followers_url":"https://api.github.com/users/ougc27/followers","following_url":"https://api.github.com/users/ougc27/following{/other_user}","gists_url":"https://api.github.com/users/ougc27/gists{/gist_id}","starred_url":"https://api.github.com/users/ougc27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ougc27/subscriptions","organizations_url":"https://api.github.com/users/ougc27/orgs","repos_url":"https://api.github.com/users/ougc27/repos","events_url":"https://api.github.com/users/ougc27/events{/privacy}","received_events_url":"https://api.github.com/users/ougc27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-12T21:03:38Z","updated_at":"2018-09-14T16:54:33Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/26947","html_url":"https://github.com/odoo/odoo/pull/26947","diff_url":"https://github.com/odoo/odoo/pull/26947.diff","patch_url":"https://github.com/odoo/odoo/pull/26947.patch"},"body":"Impacted Versions:\r\n10.0, 11.0\r\n\r\nDescription of the issue/feature this PR addresses:\r\nWhen you confirm a sale order with a stackable product a picking is created to deliver that product. If you reverse that picking with the to_refund flag in True and then confirm and reverse the picking 2 with the same flag the quantity_delivered is wrong computed.\r\n\r\nSteps to reproduce:\r\n- Create a stockable product, create a SO selling 1 unit.\r\n- Confirm the SO, validate the Picking 1 => delivered qty is 1\r\n- Return Picking 1 and validate Picking 2 => delivered qty is 0\r\n- Return Picking 2 and validate Picking 3 => delivered qty is 0\r\n\r\nCurrent behavior before PR:\r\nThe delivered quantity is wrong computed\r\n\r\nDesired behavior after PR is merged:\r\nThe deelivered quantity must be 1\r\n\r\nI have a video with the issue replicated on runbot\r\nhttps://youtu.be/vSP_gSouSBo\r\n\r\nBest Regards\r\n--\r\nI confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/421419892","html_url":"https://github.com/odoo/odoo/pull/26947#issuecomment-421419892","issue_url":"https://api.github.com/repos/odoo/odoo/issues/26947","id":421419892,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTQxOTg5Mg==","user":{"login":"ougc27","id":16998467,"node_id":"MDQ6VXNlcjE2OTk4NDY3","avatar_url":"https://avatars2.githubusercontent.com/u/16998467?v=4","gravatar_id":"","url":"https://api.github.com/users/ougc27","html_url":"https://github.com/ougc27","followers_url":"https://api.github.com/users/ougc27/followers","following_url":"https://api.github.com/users/ougc27/following{/other_user}","gists_url":"https://api.github.com/users/ougc27/gists{/gist_id}","starred_url":"https://api.github.com/users/ougc27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ougc27/subscriptions","organizations_url":"https://api.github.com/users/ougc27/orgs","repos_url":"https://api.github.com/users/ougc27/repos","events_url":"https://api.github.com/users/ougc27/events{/privacy}","received_events_url":"https://api.github.com/users/ougc27/received_events","type":"User","site_admin":false},"created_at":"2018-09-14T16:54:33Z","updated_at":"2018-09-14T16:54:33Z","author_association":"CONTRIBUTOR","body":"Hello @nim-odoo \r\n\r\nI don't know if you could review this PR please, Also, I submit a ticket (1884683).\r\n\r\nBest Regards!"}}
{"actor":{"display_login":"ougc27"}}