{"action":"opened","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/8645","labels_url":"https://api.github.com/repos/odoo/odoo/issues/8645/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/8645/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/8645/events","html_url":"https://github.com/odoo/odoo/issues/8645","id":107522907,"number":8645,"title":"Re-set to draft PO doesn't cancel reception","user":{"login":"qtheuret","id":728779,"avatar_url":"https://avatars.githubusercontent.com/u/728779?v=3","gravatar_id":"","url":"https://api.github.com/users/qtheuret","html_url":"https://github.com/qtheuret","followers_url":"https://api.github.com/users/qtheuret/followers","following_url":"https://api.github.com/users/qtheuret/following{/other_user}","gists_url":"https://api.github.com/users/qtheuret/gists{/gist_id}","starred_url":"https://api.github.com/users/qtheuret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qtheuret/subscriptions","organizations_url":"https://api.github.com/users/qtheuret/orgs","repos_url":"https://api.github.com/users/qtheuret/repos","events_url":"https://api.github.com/users/qtheuret/events{/privacy}","received_events_url":"https://api.github.com/users/qtheuret/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-21T14:17:46Z","updated_at":"2015-09-21T14:17:46Z","closed_at":null,"body":"**Re-set to draft a PO doesn't cancel reception**\r\n\r\nImpacted versions:\r\n\r\n - 9.0 (https://demo1.odoo.com)\r\n\r\nSteps to reproduce:\r\n\r\n 1. create a new purchase order\r\n 2. add a line with product 'C-case', quantity 1, unit price 10.0\r\n 3. validate the purchase order -> A reception of 2 is available\r\n 4. Cancel the purchase order\r\n 5. Re-set to draft the purchase order\r\n 6. Change the quantity to 2 for the product 'C-case'\r\n 7. Confirm the purchase order\r\n\r\nCurrent behavior:\r\n\r\n - Two receptions are linked to the purchase order: one with 1 PCE and one with 2 PCE\r\n\r\nExpected behavior:\r\n\r\n - Only one reception with 2 PCE should be linked to the PO. The old one must be updated or canceled.\r\n"}}