From 9d25ebf39cc84fc2179e7475da082a9df1a3167f Mon Sep 17 00:00:00 2001 From: niai Date: Wed, 7 Sep 2022 11:29:58 +0000 Subject: [PATCH] [FIX] point_of_sale: iot display is not connected Before this commit ================== When the IoT customer display and customer display(without IoT) are set in the pos shop settings. When we open the POS session it gives a warning "Connected, not owned" and nothing is displayed in the IoT display After this commit ================= When the IoT customer display and customer display(without IoT) are set in the pos shop settings. When we open the POS session it will connect to the IoT display successfully. Technical ========= There is a wrong field name used in the js file so the IoT display is not connecting closes odoo/odoo#100357 X-original-commit: a9ad8170145cbeae182f71943a589872a13fe77e Signed-off-by: Trinh Jacky (trj) Signed-off-by: Jigar Vaghela (jva) --- .../static/src/js/ChromeWidgets/CustomerFacingDisplayButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/ChromeWidgets/CustomerFacingDisplayButton.js b/addons/point_of_sale/static/src/js/ChromeWidgets/CustomerFacingDisplayButton.js index 6e46012e5b1..cdd5db7c528 100644 --- a/addons/point_of_sale/static/src/js/ChromeWidgets/CustomerFacingDisplayButton.js +++ b/addons/point_of_sale/static/src/js/ChromeWidgets/CustomerFacingDisplayButton.js @@ -9,7 +9,7 @@ odoo.define('point_of_sale.CustomerFacingDisplayButton', function(require) { class CustomerFacingDisplayButton extends PosComponent { setup() { super.setup(); - this.local = this.env.pos.config.iface_customer_facing_display_local && !this.env.pos.config.iface_customer_facing_display_proxy; + this.local = this.env.pos.config.iface_customer_facing_display_local && !this.env.pos.config.iface_customer_facing_display_via_proxy; this.state = useState({ status: this.local ? 'success' : 'failure' }); this._start(); }