TIP: You can type at any time to perform a new search.

Security findings

Repository
OCA/iot · module folder · Try on Runboat
Module version
1.0.0
Category
IoT
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/iot
Last tracking update
2026-08-07 08:23:15
Authors
Odoo Community Association (OCA), Creu Blanca
Maintainers
Odoo Community Association (OCA), Creu Blanca
Committers
FernandoRomera, OCA-git-bot, oca-ci
Odoo dependencies
OCA/iot:
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
None
Description
Create a system of templates for IoT devices.

When we are using a template we can configure a device with a simple URL
configuration. The device will contact odoo and send the template name.
Odoo will create the device and respond with all the expected data.

Code Analysis info_outline

Views touched (3)
XML IDNameModelTypeStatus
configure_form iot.device.configure iot.device.configure form New
iot_template_form iot.template.form iot.template form New
iot_template_tree iot.template.form iot.template tree New
HTTP endpoints (1)
Route(s)HandlerAuthTypeMethodsFlags
/iot/<serial>/configure CallIot.configure_iot none http POST csrf off sudo
Models touched (8)

New fields (0)

No new fields.

Public methods (1)
  • get_iot_configuration(self)

New fields (2)
  • serial Char
    default=<expr> readonly=True required=True
  • url Char
    compute='_compute_url'
Public methods (1)
  • configure(self, serial, template_id, ip=False, **kwargs)
    @api.model

New fields (1)
  • template_input_id Many2one → iot.template.input
    readonly=True args: 'iot.template.input'
Public methods (1)
  • get_configuration(self)

New fields (1)
  • template_output_id Many2one → iot.template.output
    readonly=True args: 'iot.template.output'
Public methods (1)
  • get_configuration(self)

New fields (9)
  • group_id Many2one → iot.device.group
    args: 'iot.device.group'
  • icon Selection
    selection=<expr>
  • input_ids One2many → iot.template.input
    inverse_name='template_id' args: 'iot.template.input'
  • key_ids One2many → iot.template.key
    inverse_name='template_id' args: 'iot.template.key'
  • name Char
    required=True
  • output_ids One2many → iot.template.output
    inverse_name='template_id' args: 'iot.template.output'
  • parent_id Many2one → iot.template
    ondelete='restrict' args: 'iot.template'
  • parent_path Char
    index=True
  • tag_ids Many2many → iot.device.tag
    args: 'iot.device.tag'
Public methods (1)
  • apply_template(self, device, keys)

New fields (5)
  • call_function Char
    required=True
  • call_model_id Many2one → ir.model
    args: 'ir.model'
  • name Char
    required=True
  • params Text
  • template_id Many2one → iot.template
    required=True args: 'iot.template'
Public methods (0)

No public methods.

New fields (2)
  • key Char
    required=True
  • template_id Many2one → iot.template
    required=True args: 'iot.template'
Public methods (0)

No public methods.

New fields (4)
  • communication_system_id Many2one → iot.communication.system
    required=True args: 'iot.communication.system'
  • name Char
    required=True
  • params Text
  • template_id Many2one → iot.template
    required=True args: 'iot.template'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
441 days ago
Last activity
1 day ago
Repository
OCA/iot
Pull request
[18.0][mig] iot_template_oca (#112)