IoT Templates
iot_template_oca · OCA/iot
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 7 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
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
- 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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/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)
-
serialChardefault=<expr>readonly=Truerequired=True -
urlCharcompute='_compute_url'
-
configure(self, serial, template_id, ip=False, **kwargs)@api.model
New fields (1)
-
template_input_idMany2one → iot.template.inputreadonly=True args: 'iot.template.input'
-
get_configuration(self)
New fields (1)
-
template_output_idMany2one → iot.template.outputreadonly=True args: 'iot.template.output'
-
get_configuration(self)
New fields (9)
-
group_idMany2one → iot.device.groupargs: 'iot.device.group' -
iconSelectionselection=<expr> -
input_idsOne2many → iot.template.inputinverse_name='template_id' args: 'iot.template.input' -
key_idsOne2many → iot.template.keyinverse_name='template_id' args: 'iot.template.key' -
nameCharrequired=True -
output_idsOne2many → iot.template.outputinverse_name='template_id' args: 'iot.template.output' -
parent_idMany2one → iot.templateondelete='restrict' args: 'iot.template' -
parent_pathCharindex=True -
tag_idsMany2many → iot.device.tagargs: 'iot.device.tag'
-
apply_template(self, device, keys)
New fields (5)
-
call_functionCharrequired=True -
call_model_idMany2one → ir.modelargs: 'ir.model' -
nameCharrequired=True -
paramsText -
template_idMany2one → iot.templaterequired=True args: 'iot.template'
No public methods.
New fields (2)
-
keyCharrequired=True -
template_idMany2one → iot.templaterequired=True args: 'iot.template'
No public methods.
New fields (4)
-
communication_system_idMany2one → iot.communication.systemrequired=True args: 'iot.communication.system' -
nameCharrequired=True -
paramsText -
template_idMany2one → iot.templaterequired=True args: 'iot.template'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…