Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 7 Odoo series since 12.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis 0 migration notes 8 models 3 views 1 HTTP endpoint

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.

Dependencies

Odoo dependencies
OCA/iot:
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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_list iot.template.form iot.template list New

HTTP endpoints 1

Route(s)HandlerAuthTypeMethodsFlags
/iot/<serial>/configure CallIot.configure_iot public 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…

Loading…