[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) <trj@odoo.com>
Signed-off-by: Jigar Vaghela (jva) <jva@odoo.com>
This commit is contained in:
niai
2022-09-16 16:20:44 +02:00
parent 53724aa3cc
commit 9d25ebf39c
@@ -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();
}