pos_six/models/pos_payment_method.py

14 lines
400 B
Python

# coding: utf-8
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class PosPaymentMethod(models.Model):
_inherit = 'pos.payment.method'
def _get_payment_terminal_selection(self):
return super(PosPaymentMethod, self)._get_payment_terminal_selection() + [('six', 'SIX')]
six_terminal_ip = fields.Char('Six Terminal IP')