diff options
| author | Joren Van Onder <jov@odoo.com> | 2018-02-02 01:34:53 +0000 |
|---|---|---|
| committer | Jorge Pinna Puissant <jpp@odoo.com> | 2019-01-16 14:19:13 +0000 |
| commit | 302d8a526441b85120f1b4501bae3efcbe700d47 (patch) | |
| tree | 39c4e85421a2829cb10618ae73f5e970037e06d4 /addons/mail/static/src/js/utils.js | |
| parent | 614babd1e78e4ea329c3628bedbca652207b7867 (diff) | |
[FIX] point_of_sale: allow refunds on non-cash journals
Cherry pick of 5b769650d6416be123e972aa8f4b2b2c25ce438f in version 11.0
A customer can pay an order with a non-cash journal (e.g. a credit
card through a stand-alone terminal).
When this order has to be refunded later it should be possible to do
so on that same journal.
Some code prevented this from happening, notably a check in
order_is_valid which explicitly prevented this for an unknown
reason. There is no explanation in the
commit (4647f896a428a19daa5b0bc3585e801110e815b4) introducing that.
This commit allows the following:
1. input what you want to refund with a negative qty
2. click 'Payment'
3. click the Credit Card (type Bank) journal
4. (amount is auto-populated)
5. click 'Validate'
opw-805302
opw-1913731
closes odoo/odoo#30218
Diffstat (limited to 'addons/mail/static/src/js/utils.js')
0 files changed, 0 insertions, 0 deletions
