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#56933 Taskid: 2191878 X-original-commit: 8aee4992778fee5e2f146c4cff8b35e83c7f56b3 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com> Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
23 lines
742 B
Python
23 lines
742 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
import odoo.addons.web.tests.test_js
|
|
import odoo.tests
|
|
|
|
|
|
@odoo.tests.tagged("post_install", "-at_install")
|
|
class WebSuite(odoo.tests.HttpCase):
|
|
def setUp(self):
|
|
super().setUp()
|
|
env = self.env(user=self.env.ref('base.user_admin'))
|
|
self.main_pos_config = env.ref('point_of_sale.pos_config_main')
|
|
|
|
def test_pos_js(self):
|
|
# open a session, the /pos/ui controller will redirect to it
|
|
self.main_pos_config.open_session_cb(check_coa=False)
|
|
|
|
# point_of_sale desktop test suite
|
|
self.browser_js(
|
|
"/pos/ui/tests?mod=web&failfast", "", "", login="admin", timeout=1800
|
|
)
|