TIP: You can type at any time to perform a new search.
IoT Templates
iot_template_oca · OCA/iot
- 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
- 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 ⓘ
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_tree |
iot.template.form | iot.template | tree | New |
HTTP endpoints (1)
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/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)
-
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…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 395 days ago
- Last activity
- 263 days ago
- Repository
- OCA/iot
- Pull request
- [18.0][mig] iot_template_oca (#112)