From ee792569f067526e0ebf542d70d790108b1caed6 Mon Sep 17 00:00:00 2001 From: "Theo VINCENT (thvi)" Date: Mon, 5 Jun 2023 08:29:26 +0000 Subject: [PATCH] [IMP] point_of_sale, *: improve customer display *: hw_drivers Improvements: - Makes the display responsive to practically never have a horizontal scrollbar. - Automatically reconnect to the customer display popup if it's still open from a previous session, allowing the user to keep it open between sessions. - Adds a view when no order is selected (in the restaurant POS UI, when the user is in the floors and tables view for example), which is also opened before leaving the POS UI (closing session or clicking on the Backend button). - Adds an empty order title as the one displayed in the backend when there is no product. - Improves the display of payment lines to take benefit of all the available free space. - Shows customer notes and discount in the customer display. - Adds order line unit next to or under the quantity (so as not to lose horizontal space). - Adds a footer dedicated to the Odoo logo, always visible. - Adds an optional user-customizable background image displayed either on the right side of the customer display if it is in landscape orientation, or in the top header of the portrait orientation. - Adds a title bar "Your Order". - Removes the "Customer Screen" label in the POS session UI and moves the status message of this screen to a notification and the title of the button. Fixes the local display of customer display for restaurants when the "Customer Screen" button is clicked from the main view (floor with tables) and not from the view of a table order. Removes .pos-adv and .pos-js_no_ADV css properties that no longer seem to be used. Thanks to Xavier (xlu) for the design ideas and mockups. task-id: 2906039 Closes #106907 closes odoo/odoo#118721 Signed-off-by: Joseph Caburnay (jcb) --- addons/hw_drivers/views/pos_display.html | 2 +- addons/point_of_sale/models/pos_config.py | 7 + .../models/res_config_settings.py | 1 + .../customer_display_service.js | 61 +- .../customer_display_template.xml | 188 +++-- addons/point_of_sale/static/src/app/main.js | 16 +- .../app/navbar/closing_popup/closing_popup.js | 5 + .../customer_facing_display_button.js | 21 +- .../customer_facing_display_button.xml | 17 +- .../static/src/app/store/models.js | 26 +- .../static/src/app/store/pos_store.js | 5 + .../src/css/customer_facing_display.css | 645 ++++++++++-------- .../point_of_sale/views/pos_config_view.xml | 4 + .../views/res_config_settings_views.xml | 8 + 14 files changed, 644 insertions(+), 362 deletions(-) diff --git a/addons/hw_drivers/views/pos_display.html b/addons/hw_drivers/views/pos_display.html index e57d24212e1..c09063818af 100644 --- a/addons/hw_drivers/views/pos_display.html +++ b/addons/hw_drivers/views/pos_display.html @@ -6,7 +6,7 @@ {{ title or "Odoo's IoTBox" }} - + + + + + + + +
+ + +
+
- +
- -
- + +
+
+
-
- -