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>
14 lines
371 B
Python
14 lines
371 B
Python
# coding: utf-8
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class PosConfig(models.Model):
|
|
_inherit = 'pos.config'
|
|
|
|
def _force_http(self):
|
|
if self.payment_method_ids.filtered(lambda pm: pm.use_payment_terminal == 'six'):
|
|
return True
|
|
return super(PosConfig, self)._force_http()
|