Skip to content
Snippets Groups Projects
Commit 3a822fa5 authored by Florent de Labarre's avatar Florent de Labarre
Browse files

[FIX] point_of_sale : prevent error if you close/open POS


- create a new order
- add payment with payment terminal
- close POS
- Open POS
- Send the payment
When the payment succeed it raise. Because after a refresh this.payment_interface is undefined.

closes odoo/odoo#71326

Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
parent 643e093a
Branches
Tags
No related merge requests found
......@@ -323,7 +323,7 @@ odoo.define('point_of_sale.PaymentScreen', function (require) {
const isPaymentSuccessful = await payment_terminal.send_payment_request(line.cid);
if (isPaymentSuccessful) {
line.set_payment_status('done');
line.can_be_reversed = this.payment_interface.supports_reversals;
line.can_be_reversed = payment_terminal.supports_reversals;
} else {
line.set_payment_status('retry');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment