|
@@ -2,10 +2,8 @@
|
|
|
from openerp import api, models, fields
|
|
|
|
|
|
AVAILABLE_PROTOCOLS = [
|
|
|
- ('ws', 'ws (WebSocket)'),
|
|
|
- ('wss', 'wss (WebSocket Seguro)'),
|
|
|
- ('http', 'http (HyperTexto)'),
|
|
|
- ('https', 'https (HyperTexto Seguro)')
|
|
|
+ ('ws', 'ws'),
|
|
|
+ ('wss', 'wss'),
|
|
|
]
|
|
|
|
|
|
class PrintEngineSocket(models.Model):
|
|
@@ -17,7 +15,7 @@ class PrintEngineSocket(models.Model):
|
|
|
|
|
|
name = fields.Char(string='Nombre', size=35, required=True)
|
|
|
protocol = fields.Selection(string='Protocolo', selection=AVAILABLE_PROTOCOLS, default='ws')
|
|
|
- host = fields.Char(string='Host', default='127.0.0.1', required=True)
|
|
|
+ host = fields.Char(string='Host', default='localhost', required=True)
|
|
|
port = fields.Integer(string='Puerto', default=8070, required=True)
|
|
|
path = fields.Char(string='Recurso', default='/')
|
|
|
last_connection = fields.Datetime(string='Última conexión', readonly=True)
|