summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
Diffstat (limited to 'addons')
-rw-r--r--addons/pos_restaurant/static/src/js/Screens/TipScreen.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/addons/pos_restaurant/static/src/js/Screens/TipScreen.js b/addons/pos_restaurant/static/src/js/Screens/TipScreen.js
index efbd83ea007..64500395cd1 100644
--- a/addons/pos_restaurant/static/src/js/Screens/TipScreen.js
+++ b/addons/pos_restaurant/static/src/js/Screens/TipScreen.js
@@ -66,10 +66,16 @@ odoo.define('pos_restaurant.TipScreen', function (require) {
}
goNextScreen() {
this.env.pos.get_order().finalize();
- this.showScreen(this.nextScreen);
+ const { name, props } = this.nextScreen;
+ this.showScreen(name, props);
}
get nextScreen() {
- return 'FloorScreen';
+ if (this.env.pos.config.module_pos_restaurant && this.env.pos.config.iface_floorplan) {
+ const table = this.env.pos.table;
+ return { name: 'FloorScreen', props: { floor: table ? table.floor : null } };
+ } else {
+ return { name: 'ProductScreen' };
+ }
}
}
TipScreen.template = 'pos_restaurant.TipScreen';