diff --git a/addons/pos_restaurant/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js b/addons/pos_restaurant/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js index 55f4e6d6d74..ec80d79f252 100644 --- a/addons/pos_restaurant/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js +++ b/addons/pos_restaurant/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js @@ -10,7 +10,7 @@ patch(ReceiptScreen.prototype, "pos_restaurant.ReceiptScreen", { this._super(...arguments); onWillUnmount(() => { // When leaving the receipt screen to the floor screen the order is paid and can be removed - if (this.pos.mainScreen.component === FloorScreen) { + if (this.pos.mainScreen.component === FloorScreen && this.currentOrder.finalized) { this.pos.globalState.removeOrder(this.currentOrder); } });