12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- from openerp import api, fields, models, _
- class TicRemoteSupportService(models.Model):
- _name = 'tic.remote.support.service'
- name = fields.Char(string="Name", required=True )
- remote_type = fields.Selection(string="Remote Type", selection=[
- ('teamviewer', 'TeamViewer'),
- ('weezo', 'Weezo'),
- ('ammyy', 'AMMYY'),
- ('vnc', 'VNC'),
- ('chrome', 'Chrome'),
- ('remotedesktop', 'Remote Desktop'),
- ('ssh', 'SSH'),
- ('web', 'Web'),
- ('other', 'Other')], required=False, )
- pc_type = fields.Selection(string="Device Type", selection=[
- ('workstation', 'WorkStation'),
- ('server', 'Server'),
- ('backup', 'Backup'),
- ('print', 'Print'),
- ('camera', 'Camera'),
- ('swich', 'Swich'),
- ('router', 'Router'),
- ('other', 'Other')], required=False, )
- remote_id = fields.Char(string="ID", required=False, )
- remote_serial = fields.Char(string="Serial", required=False, )
- remote_ip = fields.Char(string="IP", required=False, )
- remote_port = fields.Integer(string="Port", required=False, )
- remote_username = fields.Char(string="Username", required=False, )
- remote_password = fields.Char(string="Password", required=False, )
- remote_notes = fields.Text(string="Notes", required=False, )
- class TicRemoteSupport(models.Model):
- _inherit = 'res.partner'
- supportbool = fields.Boolean(string="Remote Support?")
- remotes_ids = fields.Many2many(comodel_name="tic.remote.support.service", string="Remote Support", store=True)
|