From ba83f78eb37e51a034de29580978d96653701440 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Sat, 2 Nov 2024 15:38:53 +0500 Subject: [PATCH] fixup! [MIG] pos_esign_request: port to 17.0 --- .../src/app/pages/esign_kiosk_page/esign_kiosk_page.scss | 6 ++++++ .../static/src/overrides/payment_screen/payment_screen.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pos_esign_request/static/src/app/pages/esign_kiosk_page/esign_kiosk_page.scss b/pos_esign_request/static/src/app/pages/esign_kiosk_page/esign_kiosk_page.scss index af8839c..f1a1dcb 100644 --- a/pos_esign_request/static/src/app/pages/esign_kiosk_page/esign_kiosk_page.scss +++ b/pos_esign_request/static/src/app/pages/esign_kiosk_page/esign_kiosk_page.scss @@ -32,4 +32,10 @@ > button:last-child { margin-bottom: 0; } + + .o_web_sign_draw_button, + .o_web_sign_load_button, + .o_web_sign_auto_button { + display: none; + } } diff --git a/pos_esign_request/static/src/overrides/payment_screen/payment_screen.js b/pos_esign_request/static/src/overrides/payment_screen/payment_screen.js index 709b4fd..9c66b08 100644 --- a/pos_esign_request/static/src/overrides/payment_screen/payment_screen.js +++ b/pos_esign_request/static/src/overrides/payment_screen/payment_screen.js @@ -20,7 +20,7 @@ patch(PaymentScreen.prototype, { if (partner.sign_attachment_id) break; // Sign is not mandatory - if (!this.env.pos.config.mandatory_ask_for_sign) break; + if (!this.pos.config.mandatory_ask_for_sign) break; // Customer did not sign and it is mandatory this.popup.add(ErrorPopup, {