{"action":"closed","issue":{"url":"https://api.github.com/repos/OCA/purchase-workflow/issues/647","repository_url":"https://api.github.com/repos/OCA/purchase-workflow","labels_url":"https://api.github.com/repos/OCA/purchase-workflow/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/OCA/purchase-workflow/issues/647/comments","events_url":"https://api.github.com/repos/OCA/purchase-workflow/issues/647/events","html_url":"https://github.com/OCA/purchase-workflow/issues/647","id":406976934,"node_id":"MDU6SXNzdWU0MDY5NzY5MzQ=","number":647,"title":"[11.0] Purchase request duplicated if route procurement rule action is buy","user":{"login":"altoch","id":6033322,"node_id":"MDQ6VXNlcjYwMzMzMjI=","avatar_url":"https://avatars0.githubusercontent.com/u/6033322?v=4","gravatar_id":"","url":"https://api.github.com/users/altoch","html_url":"https://github.com/altoch","followers_url":"https://api.github.com/users/altoch/followers","following_url":"https://api.github.com/users/altoch/following{/other_user}","gists_url":"https://api.github.com/users/altoch/gists{/gist_id}","starred_url":"https://api.github.com/users/altoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altoch/subscriptions","organizations_url":"https://api.github.com/users/altoch/orgs","repos_url":"https://api.github.com/users/altoch/repos","events_url":"https://api.github.com/users/altoch/events{/privacy}","received_events_url":"https://api.github.com/users/altoch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-05T21:14:02Z","updated_at":"2019-02-05T21:20:29Z","closed_at":"2019-02-05T21:20:29Z","author_association":"NONE","body":"When a sale order triggers a purchase request, if the selected route has a procurement rule with action buy (don't confuse with route named buy, which also has the action buy), It generates two identical purchase requests, with different procurement group id.  The first the same as the sales order procurement group and the other id incremented by 1.\r\n\r\nThis  happens on route's to buy and route dropship. \r\nThis doesn't happen on routes MTO or MTS+MTO wich action is move from another location."}}
{"actor":{"display_login":"altoch"}}