diff options
| author | Antoine Prieels <anp@odoo.com> | 2021-01-29 12:19:32 +0000 |
|---|---|---|
| committer | Antoine Prieels <anp@odoo.com> | 2021-01-29 12:19:32 +0000 |
| commit | c324c024d4c5e013b2405b509e91337bd3dc4dc7 (patch) | |
| tree | 61e1c958f09a589544e52db66c6d5992f2b5d555 | |
| parent | ada1da9a0cea6aaa3f91ee34fd3b273be79e1e3d (diff) | |
[FW][FIX] point_of_sale: Open cashdrawer with change
We should open the cashdrawer when paying with a non cash payment
method if change should be returned to the customer.
Use case: The customer wants to pay 10€ more with his card to get 10€
in cash in return.
closes odoo/odoo#65260
Taskid: 2449312
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
| -rw-r--r-- | addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js b/addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js index 89a7a1de622..78f1638cf65 100644 --- a/addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js +++ b/addons/point_of_sale/static/src/js/Screens/PaymentScreen/PaymentScreen.js @@ -149,7 +149,7 @@ odoo.define('point_of_sale.PaymentScreen', function (require) { } } async _finalizeValidation() { - if (this.currentOrder.is_paid_with_cash() && this.env.pos.config.iface_cashdrawer) { + if ((this.currentOrder.is_paid_with_cash() || this.currentOrder.get_change()) && this.env.pos.config.iface_cashdrawer) { this.env.pos.proxy.printer.open_cashbox(); } |
