You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
839 B
33 lines
839 B
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class BackendVoicent(models.Model):
|
|
_name = 'backend.voicent'
|
|
_description = 'Voicent Backend'
|
|
_rec_name = 'host'
|
|
|
|
host = fields.Char(
|
|
string=u'Host',
|
|
required=True,
|
|
)
|
|
port = fields.Integer(
|
|
string=u'Port',
|
|
required=True,
|
|
)
|
|
next_call = fields.Datetime(
|
|
string=u'Next Call',
|
|
copy=False,
|
|
default=lambda self: fields.Datetime.now(),
|
|
)
|
|
call_line_ids = fields.One2many(
|
|
string=u'Call Lines',
|
|
comodel_name='backend.voicent.call.line',
|
|
inverse_name='backend_id',
|
|
)
|
|
time_line_ids = fields.One2many(
|
|
string=u'Call Times',
|
|
comodel_name='backend.voicent.time.line',
|
|
inverse_name='backend_id',
|
|
)
|