summaryrefslogtreecommitdiff
path: root/addons/pos_six/models/pos_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/pos_six/models/pos_config.py')
-rw-r--r--addons/pos_six/models/pos_config.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/pos_six/models/pos_config.py b/addons/pos_six/models/pos_config.py
new file mode 100644
index 00000000..6d986b2d
--- /dev/null
+++ b/addons/pos_six/models/pos_config.py
@@ -0,0 +1,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()