From edab62fe38395750ceecbb15d0fab235d0fa4f7a Mon Sep 17 00:00:00 2001 From: Joseph Caburnay Date: Fri, 14 Apr 2023 08:15:55 +0000 Subject: [PATCH] [FIX] point_of_sale: remove call to send_current_order_to_customer_facing_display The said method is no longer present since 45d08db3c4a902bf798a7889cdbb02276a2d8f25. No need to replace it -- it can just be removed -- because the customer_display already relies on the reactivity which automatically recomputes the html when dependencies changed. Part-of: odoo/odoo#117231 --- .../static/src/js/Screens/ReceiptScreen/ReceiptScreen.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js b/addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js index e1aa94b4a85..1f4551af774 100644 --- a/addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js +++ b/addons/point_of_sale/static/src/js/Screens/ReceiptScreen/ReceiptScreen.js @@ -130,9 +130,6 @@ export class ReceiptScreen extends AbstractReceiptScreen { this._addNewOrder(); const { name, props } = this.nextScreen; this.pos.showScreen(name, props); - if (this.env.pos.config.iface_customer_facing_display) { - this.env.pos.send_current_order_to_customer_facing_display(); - } } resumeOrder() { this.env.pos.removeOrder(this.currentOrder);