From 3a2371333a7ec11df9541be54e5dc8a4bad8de96 Mon Sep 17 00:00:00 2001 From: vlst Date: Wed, 14 Jun 2023 13:07:28 +0200 Subject: [PATCH] [IMP] point_of_sale: improve loading of customer display image The customer display loads very slowly in the RemoteDisplay mode. This is in big part because of the large size of the bg image. This image is loaded on every single update of the customer display. This PR makes it so the bg image is loaded directly from the server, in order for it to be cached on the customer display, thus improving considerately the response time. closes odoo/odoo#124998 Signed-off-by: Robin Heinz (rhe) --- .../customer_display/customer_display_template.xml | 10 ++++++---- .../point_of_sale/static/src/app/store/pos_store.js | 11 ----------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/addons/point_of_sale/static/src/app/customer_display/customer_display_template.xml b/addons/point_of_sale/static/src/app/customer_display/customer_display_template.xml index 002c2fcdc95..a9c52659d1e 100644 --- a/addons/point_of_sale/static/src/app/customer_display/customer_display_template.xml +++ b/addons/point_of_sale/static/src/app/customer_display/customer_display_template.xml @@ -29,25 +29,27 @@ + -
+
-
+
+
-
+
@@ -57,7 +59,7 @@
-
+