{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/15567","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/15567/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/15567/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/15567/events","html_url":"https://github.com/odoo/odoo/issues/15567","id":208909768,"number":15567,"title":"[9.0] Unable to return products when using different payment method","user":{"login":"Yenthe666","id":6352350,"avatar_url":"https://avatars.githubusercontent.com/u/6352350?v=3","gravatar_id":"","url":"https://api.github.com/users/Yenthe666","html_url":"https://github.com/Yenthe666","followers_url":"https://api.github.com/users/Yenthe666/followers","following_url":"https://api.github.com/users/Yenthe666/following{/other_user}","gists_url":"https://api.github.com/users/Yenthe666/gists{/gist_id}","starred_url":"https://api.github.com/users/Yenthe666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yenthe666/subscriptions","organizations_url":"https://api.github.com/users/Yenthe666/orgs","repos_url":"https://api.github.com/users/Yenthe666/repos","events_url":"https://api.github.com/users/Yenthe666/events{/privacy}","received_events_url":"https://api.github.com/users/Yenthe666/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mart-e","id":564822,"avatar_url":"https://avatars.githubusercontent.com/u/564822?v=3","gravatar_id":"","url":"https://api.github.com/users/mart-e","html_url":"https://github.com/mart-e","followers_url":"https://api.github.com/users/mart-e/followers","following_url":"https://api.github.com/users/mart-e/following{/other_user}","gists_url":"https://api.github.com/users/mart-e/gists{/gist_id}","starred_url":"https://api.github.com/users/mart-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mart-e/subscriptions","organizations_url":"https://api.github.com/users/mart-e/orgs","repos_url":"https://api.github.com/users/mart-e/repos","events_url":"https://api.github.com/users/mart-e/events{/privacy}","received_events_url":"https://api.github.com/users/mart-e/received_events","type":"User","site_admin":false},"assignees":[{"login":"mart-e","id":564822,"avatar_url":"https://avatars.githubusercontent.com/u/564822?v=3","gravatar_id":"","url":"https://api.github.com/users/mart-e","html_url":"https://github.com/mart-e","followers_url":"https://api.github.com/users/mart-e/followers","following_url":"https://api.github.com/users/mart-e/following{/other_user}","gists_url":"https://api.github.com/users/mart-e/gists{/gist_id}","starred_url":"https://api.github.com/users/mart-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mart-e/subscriptions","organizations_url":"https://api.github.com/users/mart-e/orgs","repos_url":"https://api.github.com/users/mart-e/repos","events_url":"https://api.github.com/users/mart-e/events{/privacy}","received_events_url":"https://api.github.com/users/mart-e/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-02-20T15:21:33Z","updated_at":"2017-02-23T07:24:36Z","closed_at":null,"body":"Impacted versions: 9.0 enterprise\r\n\r\nSteps to reproduce:\r\n- Open the point of sale and create an order for a product, choose the payment method 'Cash (USD)':\r\n![image](https://cloud.githubusercontent.com/assets/6352350/23130545/2f8aaf52-f787-11e6-9bea-02e0d227a196.png)\r\n- Close your point of sale, open up the order that you've just made in the PoS:\r\n![image](https://cloud.githubusercontent.com/assets/6352350/23130584/510812aa-f787-11e6-9df0-cb29642c0c37.png)\r\n- Refund the products by clicking on 'Return Product'\r\n- Add a payment on it that is not the same payment method as used in the PoS:\r\n![image](https://cloud.githubusercontent.com/assets/6352350/23130656/9b3f5892-f787-11e6-9fc3-cdc94183f820.png)\r\n- Click on 'Make payment' and you'll get the following error:\r\n![image](https://cloud.githubusercontent.com/assets/6352350/23130687/ae04bdfa-f787-11e6-8faa-adaa09ecdb4c.png)\r\nhttps://github.com/odoo/odoo/blob/2f66e77fe8f46ace6eee1bcf306c453c1b3ce949/addons/point_of_sale/point_of_sale.py#L1131\r\nThis exact same behaviour will work fine if you use the same payment method (Cash (USD)) though.\r\n\r\nCurrent behavior: You can't return products on another payment method then the payment method on which the order is made.\r\nImagine the following case: You've sold a product to the customer, however, after two days the customer comes back because he wants to return this product. You open up the orders from the PoS, find the order and return the product. You however do not want to give the customer his money back and would like to use a cheque. This will need another payment method, which is not possible now in Odoo.\r\n\r\nExpected behavior: You're unable to return products with another payment method then where it is initially created in.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/281915658","html_url":"https://github.com/odoo/odoo/issues/15567#issuecomment-281915658","issue_url":"https://api.github.com/repos/odoo/odoo/issues/15567","id":281915658,"user":{"login":"Yenthe666","id":6352350,"avatar_url":"https://avatars.githubusercontent.com/u/6352350?v=3","gravatar_id":"","url":"https://api.github.com/users/Yenthe666","html_url":"https://github.com/Yenthe666","followers_url":"https://api.github.com/users/Yenthe666/followers","following_url":"https://api.github.com/users/Yenthe666/following{/other_user}","gists_url":"https://api.github.com/users/Yenthe666/gists{/gist_id}","starred_url":"https://api.github.com/users/Yenthe666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yenthe666/subscriptions","organizations_url":"https://api.github.com/users/Yenthe666/orgs","repos_url":"https://api.github.com/users/Yenthe666/repos","events_url":"https://api.github.com/users/Yenthe666/events{/privacy}","received_events_url":"https://api.github.com/users/Yenthe666/received_events","type":"User","site_admin":false},"created_at":"2017-02-23T07:24:36Z","updated_at":"2017-02-23T07:24:36Z","body":"Hi @mart-e,\r\n\r\nIndeed you cannot create a payment for a payment method that was not used in the POS session. However, imagine having two customers that both paid with Cash (USD). You'll have two sales but in this case I still can't do a return of my products on another payment method. \r\n\r\nShouldn't it be possible to return products with another payment method than the one it was made in?\r\nFor example: I have a customer that has to pay 50€. The customer pays it in cash in the POS. The next day he comes back to the shop and he wishes to return his products. The shop allows the returning of products but does not return cash (which most shops don't do anymore) and instead wants to give a voucher. This voucher however is another payment method, a new one created in the payment methods on another debit & credit account. If I'm not mistaking this is not possible in the POS at the moment?"}}
{"actor":{"display_login":"Yenthe666"}}