Health
36/100
poor
-
Security16/253 minor findings
-
Activity0/25Last human commit 47 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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
1 migration note
4 models
5 views
3 HTTP endpoints
Migration considerations
iot_device_input_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- iot_template_oca
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
iot_device_form |
iot.device.form | iot.device | form | Inherits iot.iot_device_form |
iot_device_input_form |
iot.device.input.form | iot.device.input | form | New |
iot_device_input_search |
iot.device.input.search | iot.device.input | search | New |
iot_device_input_tree |
iot.device.input.tree | iot.device.input | tree | New |
iot_device_kanban |
iot.device.kanban | iot.device | kanban | Inherits iot.iot_device_kanban |
HTTP endpoints 3
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/iot/<serial>/action |
CallIot.call_unauthorized_iot |
none | http | POST | csrf off sudo |
/iot/<device_identification>/multi_input |
CallIot.call_unauthorized_iot_multi_input |
none | http | POST | csrf off sudo |
/iot/<serial>/check |
CallIot.check_unauthorized_iot |
none | http | POST | csrf off sudo |
Models touched 4
New fields (2)
-
input_countIntegercompute='_compute_input_count' -
input_idsOne2many → iot.device.inputinverse_name='device_id' args: 'iot.device.input'
-
action_show_input(self) -
parse_multi_input(self, device_identification, passphrase, values)@api.modelHandle multiple inputs for device :param string device_identification: Device identification. :param string passphrase: Device passphrase. :param list values: Values is a list of dicts with at least values for keys 'address', 'value' Each dict in the list can have: - Different address (multi input) - Same address, different values (multi event) - Mix of the above (multi input, multi event) :returns: JSON encodable list of dicts :rtype: list -
parse_single_input(self, uuid=None, address=None, **kwargs)Handle single input for device :param dict value: Dict containing at least keys 'address', 'value' :returns: dict with keys 'status', 'message' where: - status='ok' when value is parsed without errors - status='error' and message='error message' when error occurs If value contains a value with key 'uuid', it is passed in the return dict to identify result for each entry at the iot end :rtype: dict
New fields (11)
-
action_countIntegercompute='_compute_action_count' -
action_idsOne2many → iot.device.input.actioninverse_name='input_id'readonly=True args: 'iot.device.input.action' -
activeBooleandefault=True -
addressChar -
call_functionCharrequired=True -
call_model_idMany2one → ir.modelargs: 'ir.model' -
device_idMany2one → iot.deviceauto_join=Truereadonly=Truerequired=True args: 'iot.device' -
langSelectionselection=<expr>string='Language' -
nameCharrequired=True -
passphraseChar -
serialChar
-
call_device(self, **kwargs) -
get_device(self, serial, passphrase)@api.model -
parse_args(self, serial, passphrase) -
test_input_device(self, value) -
test_model_function(self, value)
New fields (4)
-
argsChar -
input_idMany2one → iot.device.inputargs: 'iot.device.input' -
kwargsChar -
resChar
No public methods.
New fields (0)
No new fields.
Public methods (1)-
create(self, vals)@api.model