[FIX] pos_restaurant: stop closing paymentscreen while paying
Current behavior: If you stay in idle too long on the payment screen while doing a payment the screen would go back to the floor screen Steps to reproduce: - Have PoS installed and setup restaurant - Go in the PoS restaurant - Go in any table add some product and go to payment screen - Click on any payment method - Wait some time and you should go back to the floor screen opw-2849939 closes odoo/odoo#93689 X-original-commit: 3c90b940e4ffa9208517974a6238e64e09f03475 Signed-off-by: Trinh Jacky (trj) <trj@odoo.com> Signed-off-by: Engels Robin (roen) <roen@odoo.com>
This commit is contained in:
@@ -66,7 +66,8 @@ odoo.define('pos_restaurant.chrome', function (require) {
|
||||
this.showScreen('FloorScreen', { floor: table ? table.floor : null });
|
||||
}
|
||||
_shouldResetIdleTimer() {
|
||||
return this.env.pos.config.iface_floorplan && this.mainScreen.name !== 'FloorScreen';
|
||||
const stayPaymentScreen = this.mainScreen.name === 'PaymentScreen' && this.env.pos.get_order().paymentlines.length > 0;
|
||||
return !stayPaymentScreen && this.mainScreen.name !== 'FloorScreen';
|
||||
}
|
||||
__showScreen() {
|
||||
super.__showScreen(...arguments);
|
||||
|
||||
Reference in New Issue
Block a user