From 8aee4992778fee5e2f146c4cff8b35e83c7f56b3 Mon Sep 17 00:00:00 2001 From: Antoine Prieels Date: Wed, 20 May 2020 14:12:18 +0000 Subject: [IMP] point_of_sale, pos_*: Enable HTTPS in POS HTTPS had been disabled on SaaS to allow the use of the IoT Box that had no valid SSL certificate. As of V13.0, IoT Boxes connected to Enterprise DBs have a valid certificate. POS can then use HTTPS. Nginx is configured to redirect all requests to `/pos/web` to HTTP, so we change the POS URL to `/pos/ui`, except when using a Six payment terminal as it only works in HTTP. closes odoo/odoo#51625 Taskid: 2191878 Signed-off-by: pimodoo --- addons/pos_hr/static/tests/tours/PosHrTour.js | 2 +- addons/pos_hr/tests/test_frontend.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/pos_hr') diff --git a/addons/pos_hr/static/tests/tours/PosHrTour.js b/addons/pos_hr/static/tests/tours/PosHrTour.js index df4cc2be6da..ca96f846df1 100644 --- a/addons/pos_hr/static/tests/tours/PosHrTour.js +++ b/addons/pos_hr/static/tests/tours/PosHrTour.js @@ -49,5 +49,5 @@ odoo.define('point_of_sale.tour.PosHr', function (require) { NumberPopup.do.clickConfirm(); ProductScreen.check.isShown(); - Tour.register('PosHrTour', { test: true, url: '/pos/web' }, getSteps()); + Tour.register('PosHrTour', { test: true, url: '/pos/ui' }, getSteps()); }); diff --git a/addons/pos_hr/tests/test_frontend.py b/addons/pos_hr/tests/test_frontend.py index 9afcd78897a..70b9fbd7268 100644 --- a/addons/pos_hr/tests/test_frontend.py +++ b/addons/pos_hr/tests/test_frontend.py @@ -43,11 +43,11 @@ class TestPosHrHttpCommon(TestPointOfSaleHttpCommon): @tagged("post_install", "-at_install") class TestUi(TestPosHrHttpCommon): def test_01_pos_hr_tour(self): - # open a session, the /pos/web controller will redirect to it + # open a session, the /pos/ui controller will redirect to it self.main_pos_config.open_session_cb(check_coa=False) self.start_tour( - "/pos/web?config_id=%d" % self.main_pos_config.id, + "/pos/ui?config_id=%d" % self.main_pos_config.id, "PosHrTour", login="admin", ) -- cgit v1.2.3