summaryrefslogtreecommitdiff
path: root/addons/pos_six/models/pos_config.py
blob: 6d986b2d3ab9c302b599ff31f0aa9cb93e995341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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()