File tree 1 file changed +5
-1
lines changed
pos_payment_terminal/static/src/js
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ odoo.define("pos_payment_terminal.payment", function(require) {
73
73
pay_line ,
74
74
response
75
75
) ;
76
+ // show the new 'waiting_card' status on screen
76
77
if ( self . pos . chrome . gui . current_screen && self . pos . chrome . gui . current_screen . render_paymentlines ) {
77
78
self . pos . chrome . gui . current_screen . render_paymentlines ( ) ;
78
79
}
@@ -107,6 +108,7 @@ odoo.define("pos_payment_terminal.payment", function(require) {
107
108
clearInterval ( timerId ) ;
108
109
pay_line . set_payment_status ( "force_done" ) ;
109
110
reject ( ) ;
111
+ return ;
110
112
}
111
113
// Query the driver status more frequently than the regular POS
112
114
// proxy, to get faster feedback when the transaction is
@@ -115,9 +117,11 @@ odoo.define("pos_payment_terminal.payment", function(require) {
115
117
if ( this . payment_method . oca_payment_terminal_id ) {
116
118
status_params . terminal_id = this . payment_method . oca_payment_terminal_id ;
117
119
}
118
- // if a user action already update the transaction status, dont bother
120
+ // if a user action already updated the transaction status, stop checking status
119
121
if ( ( pay_line . payment_status == 'done' ) || ( pay_line . payment_status == 'retry' ) ) {
120
122
clearInterval ( timerId ) ;
123
+ reject ( ) ;
124
+ return ;
121
125
}
122
126
// otherwise check status
123
127
this . pos . proxy . connection
You can’t perform that action at this time.
0 commit comments