From 004affffdaadbb3182369c77ddbc8dee3db8fa3e Mon Sep 17 00:00:00 2001 From: "David Monnom (moda)" Date: Wed, 21 Jun 2023 13:23:37 +0000 Subject: [PATCH] [IMP] pos_self_order: ux improvements Improvement of several aspects of the self-order UX: - Changed the sentence indicating that the self-order is menu only. - Added a shadow to the header. - Reduced the size of the product image in the product list. - Reduced the size of the product title in the product list. - Reduced the size of the product image when you are on the page to add it to the shopping basket. - Added a shadow above the sticky area on a product's main page. - The quantity of a product already added to the basket has been moved from next to the title to next to the price. - The review button now floats above the product list and no longer has a background colour. - In the basket, taxes and the total are now displayed after orderlines and no longer sticky at the bottom. - When the quantity of a product in the cart is changed to 0, the button is now called "remove from cart". Part-of: odoo/odoo#125743 --- .../static/src/components/lines/lines.xml | 2 +- .../components/product_card/product_card.scss | 8 +++--- .../components/product_card/product_card.xml | 10 ++++---- .../src/pages/order_cart/order_cart.xml | 25 +++++++++---------- .../src/pages/product_list/product_list.xml | 7 +++--- .../product_main_view/product_main_view.xml | 14 ++++++++--- .../static/src/pos_self_order_styles.scss | 6 +++-- .../static/src/self_order_service.js | 6 +++-- .../self_order_after_meal_product_tour.js | 2 +- .../static/tests/tours/tour_utils.js | 16 ++++++------ addons/pos_self_order/tests/test_frontend.py | 1 - 11 files changed, 52 insertions(+), 45 deletions(-) diff --git a/addons/pos_self_order/static/src/components/lines/lines.xml b/addons/pos_self_order/static/src/components/lines/lines.xml index a97703859b9..881443efb2c 100644 --- a/addons/pos_self_order/static/src/components/lines/lines.xml +++ b/addons/pos_self_order/static/src/components/lines/lines.xml @@ -9,7 +9,7 @@
-

+

-
+
+
-

+

-

diff --git a/addons/pos_self_order/static/src/pages/order_cart/order_cart.xml b/addons/pos_self_order/static/src/pages/order_cart/order_cart.xml index 5c7476856f5..6cb804c5333 100644 --- a/addons/pos_self_order/static/src/pages/order_cart/order_cart.xml +++ b/addons/pos_self_order/static/src/pages/order_cart/order_cart.xml @@ -2,22 +2,21 @@
+
- + +
+ +
- -
-
- -
- - -
diff --git a/addons/pos_self_order/static/src/pages/product_list/product_list.xml b/addons/pos_self_order/static/src/pages/product_list/product_list.xml index 582240b58f0..3d186bcaec0 100644 --- a/addons/pos_self_order/static/src/pages/product_list/product_list.xml +++ b/addons/pos_self_order/static/src/pages/product_list/product_list.xml @@ -38,7 +38,7 @@ -
+

No products found

@@ -52,7 +52,7 @@

No products found

-

+

@@ -70,8 +70,7 @@ but if there are no products (for example if you search for something that does not exist), the button would be at the top of the page ) --> -
-
+
-