Remote Measure Devices Input
web_widget_remote_measure · OCA/stock-weighing
Health
88/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by20/252 modules depend on it
-
Maturity18/25In 3 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
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.1 MB
Module directory on disk
Code analysis
0 migration notes
3 models
6 views
1 HTTP endpoint
Description
This module allows to input data from remote devices in your network. Currently, only websockets devices are supported, but it can be extended for any protocol like Webservices.
Other modules can extend this one in order to use the widget.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- stock_remote_measure, stock_weighing_remote_measure
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
measure_device_form |
remote.measure.device | form | New | |
measure_device_kanban |
remote.measure.device | kanban | New | |
measure_device_list |
remote.measure.device | list | New | |
res_users_form_view |
res.users | form | Inherits base.view_users_form_simple_modif | |
view_users_form |
res.users | form | Inherits base.view_users_form | |
view_users_select_remote_measure_form |
res.users.select.remote.measure.device | res.users | form | New |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/remote_measure_device/<int:device> |
RemoteDeviceTcpConnection.request_weight |
user | json | ALL |
Models touched 3
New fields (12)
-
activeBooleandefault=True -
connection_modeSelectionrequired=Trueselection=[('websockets', 'Web Sockets'), ('webservices', 'Web Services'), ('tcp', 'Direct connection')] -
hostCharrequired=True -
instant_readBooleanhelp='Read right on as the widget gets rendered' -
nameCharrequired=True -
non_stop_readBooleanhelp="Don't stop reading until the widget is disposed" -
protocolSelectionhelp='Operating protocol'required=Trueselection=[('f501', 'Scale F501')] -
read_intervalIntegerhelp='(0 for no sleep between reads) Miliseconds to wait between device reads' -
test_measureFloatdefault=0.0 -
uom_category_idMany2onerelated='uom_id.category_id' -
uom_factorFloatrelated='uom_id.factor' -
uom_idMany2one → uom.uomcomodel_name='uom.uom'required=Truestring='Unit of measure'
-
test_connection_notification(self, notification_type, host, port) -
test_tcp_connection(self)Verify the TCP connection with the remote device
New fields (1)
-
remote_measure_device_idMany2one → remote.measure.devicecomodel_name='remote.measure.device'help='Default remote measure device for this user'readonly=Falserelated='res_users_settings_id.remote_measure_device_id'
-
SELF_READABLE_FIELDS(self)@property -
SELF_WRITEABLE_FIELDS(self)@property -
action_close_remote_device_wizard(self)
New fields (1)
-
remote_measure_device_idMany2one → remote.measure.devicecomodel_name='remote.measure.device'help='Default remote measure device for this user'
No public methods.
Loading…
Loading…