From b6ea693753cb1b12334e792d7bf0a65a984cacf1 Mon Sep 17 00:00:00 2001 From: "David Monnom (moda)" Date: Tue, 5 Sep 2023 16:01:59 +0200 Subject: [PATCH] [FIX] pos_self_order: fix combo header in kiosk Previously, header height in pages was managed by `kiosk_template.js` and in the various other components via props. This caused a bug in the `combo.xml` page, as the header with steps and product names was not displayed. Now the height of header, content and footer is managed entirely via the components and never via the template. This corrects the error in question. closes odoo/odoo#134354 Signed-off-by: Joseph Caburnay (jcb) --- .../static/src/kiosk/template/kiosk_template.js | 4 ---- .../static/src/kiosk/template/kiosk_template.xml | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/addons/pos_self_order/static/src/kiosk/template/kiosk_template.js b/addons/pos_self_order/static/src/kiosk/template/kiosk_template.js index f26f8ed65a1..e08d7c2eb61 100644 --- a/addons/pos_self_order/static/src/kiosk/template/kiosk_template.js +++ b/addons/pos_self_order/static/src/kiosk/template/kiosk_template.js @@ -39,10 +39,6 @@ export class KioskTemplate extends Component { }); } - get isHeaderBanner() { - return this.selfOrder.kiosk_image_home; - } - idleDetector() { clearTimeout(this.idleTimer); this.idleTimer = setTimeout(() => this.router.navigate("default"), 3 * 60 * 1000); // 5 minutes diff --git a/addons/pos_self_order/static/src/kiosk/template/kiosk_template.xml b/addons/pos_self_order/static/src/kiosk/template/kiosk_template.xml index 774ca39dca5..7449938650f 100644 --- a/addons/pos_self_order/static/src/kiosk/template/kiosk_template.xml +++ b/addons/pos_self_order/static/src/kiosk/template/kiosk_template.xml @@ -2,10 +2,10 @@
-
+
-
+