diff --git a/addons/point_of_sale/__manifest__.py b/addons/point_of_sale/__manifest__.py index c275471a0c9..c4069d3f632 100644 --- a/addons/point_of_sale/__manifest__.py +++ b/addons/point_of_sale/__manifest__.py @@ -77,16 +77,32 @@ # Main PoS assets, they are loaded in the PoS UI and in the PoS unit tests 'point_of_sale._assets_pos': [ - # scss variables and utilities - 'point_of_sale/static/src/scss/pos_variables_extra.scss', + # 'preparation_display' bootstrap customization layer + 'web/static/src/scss/functions.scss', + # 'point_of_sale/static/src/scss/primary_variables.scss', TO DO - CREATE + + # 'webclient' bootstrap customization layer ('include', 'web._assets_helpers'), - 'web/static/src/scss/bootstrap_overridden.scss', + ('include', 'web._assets_backend_helpers'), + 'web/static/src/scss/pre_variables.scss', 'web/static/lib/bootstrap/scss/_variables.scss', - 'web/static/fonts/fonts.scss', + + # Import Bootstrap + ('include', 'web._assets_bootstrap_backend'), + + # Icons 'web/static/src/libs/fontawesome/css/font-awesome.css', 'web/static/lib/odoo_ui_icons/*', + 'web/static/src/webclient/icons.scss', + + # scss variables and utilities + 'point_of_sale/static/src/scss/pos_variables_extra.scss', + 'web/static/src/scss/bootstrap_overridden.scss', + 'web/static/fonts/fonts.scss', 'web/static/src/legacy/scss/fontawesome_overridden.scss', + + # JS framework 'web/static/src/boot.js', 'web/static/src/session.js', @@ -228,14 +244,6 @@ 'web/static/tests/main.js', 'web/static/tests/setup.js', - # These 2 lines below are taken from web.assets_frontend - # They're required for the web.frontend_legacy to work properly - # It is expected to add other lines coming from the web.assets_frontend - # if we need to add more and more legacy stuff that would require other scss or js. - ('include', 'web._assets_helpers'), - 'web/static/src/scss/pre_variables.scss', - 'web/static/lib/bootstrap/scss/_variables.scss', - ('include', 'web.frontend_legacy'), ("include", "web.assets_backend_legacy_lazy"), ## END copy of web.tests_assets diff --git a/addons/point_of_sale/static/src/app/barcode/error_popup/barcode_error_popup.xml b/addons/point_of_sale/static/src/app/barcode/error_popup/barcode_error_popup.xml index c701a475f02..254fe96acf1 100644 --- a/addons/point_of_sale/static/src/app/barcode/error_popup/barcode_error_popup.xml +++ b/addons/point_of_sale/static/src/app/barcode/error_popup/barcode_error_popup.xml @@ -3,20 +3,15 @@ diff --git a/addons/point_of_sale/static/src/app/debug/debug_widget.scss b/addons/point_of_sale/static/src/app/debug/debug_widget.scss index 0fb0537852d..24c7e66a5d6 100644 --- a/addons/point_of_sale/static/src/app/debug/debug_widget.scss +++ b/addons/point_of_sale/static/src/app/debug/debug_widget.scss @@ -4,87 +4,6 @@ right: 10px; top: 106px; width: 200px; - font-size: 10px; - - background: rgba(0, 0, 0, 0.82); - color: white; - padding-bottom: 10px; cursor: move; -webkit-transform: translate3d(0, 0, 0); -} - -.debug-widget .toggle { - position: absolute; - font-size: 16px; - cursor: pointer; - top: 0px; - right: 0px; - padding: 10px; - padding-right: 15px; -} - -.debug-widget .content { - overflow: hidden; -} - -.debug-widget header { - position: relative; -} - -.debug-widget h1 { - background: black; - padding-top: 10px; - padding-left: 10px; - margin-top: 0; - margin-bottom: 0; -} - -.debug-widget .category { - background: black; - padding-left: 10px; - margin: 0px; - font-weight: bold; - padding-top: 3px; - padding-bottom: 3px; -} - -.debug-widget .button { - padding: 5px; - padding-left: 15px; - display: block; - cursor: pointer; -} - -.debug-widget .button:active { - background: rgba(96, 21, 177, 0.45); -} - -.debug-widget input { - margin-left: 10px; - margin-top: 7px; - padding: 4px; - width: 180px; - border: none; - box-sizing: border-box; - -moz-box-sizing: border-box; - border-radius: 3px; -} - -.debug-widget .status { - padding: 5px; - padding-left: 15px; - display: block; - cursor: default; -} - -.debug-widget .status.on { - background-color: #6cd11d; -} - -.debug-widget .event { - padding: 5px; - padding-left: 15px; - display: block; - cursor: default; - background-color: #1E1E1E; -} +}; diff --git a/addons/point_of_sale/static/src/app/debug/debug_widget.xml b/addons/point_of_sale/static/src/app/debug/debug_widget.xml index b029d5398d2..f8df9c3561c 100644 --- a/addons/point_of_sale/static/src/app/debug/debug_widget.xml +++ b/addons/point_of_sale/static/src/app/debug/debug_widget.xml @@ -3,88 +3,100 @@ -
+
-

Debug Window

+

Debug Window

- -
-

Electronic Scale

-
    -
  • - -
  • -
  • Set Weight
  • -
  • Reset
  • -
+ +
-

Barcode Scanner

-
    -
  • - -
  • -
  • Scan
  • -
  • Scan EAN-13
  • -
+
+
Electronic Scale
+ +
    + + +
+
-

Orders

- - +
-

Hardware Status

-
    -
  • Weighing
  • -
  • - Refresh Display -
  • -
-

Hardware Events

-
    -
  • Open Cashbox
  • -
  • Print Receipt
  • -
  • Read Weighing Scale
  • -
-

Others

-
    -
  • - Buffer: - -
  • -
+
+
Orders
+ +
+ +
+
Hardware Status
+
    +
  • Weighing
  • + +
+
+ +
+
Hardware Events
+
    +
  • Open Cashbox
  • +
  • Print Receipt
  • +
  • Read Weighing Scale
  • +
+
+ +
+
Others
+
    +
  • + Buffer: + +
  • +
+
diff --git a/addons/point_of_sale/static/src/app/debug/order_import_popup/order_import_popup.xml b/addons/point_of_sale/static/src/app/debug/order_import_popup/order_import_popup.xml index 3520605b67c..6a01fbfdda3 100644 --- a/addons/point_of_sale/static/src/app/debug/order_import_popup/order_import_popup.xml +++ b/addons/point_of_sale/static/src/app/debug/order_import_popup/order_import_popup.xml @@ -3,10 +3,12 @@