Skip to content
Health
88/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 15.0

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

Security findings
Grave / minor (static analysis)
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
odoo/odoo:
- web
- uom
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 IDNameModelTypeStatus
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)HandlerAuthTypeMethodsFlags
/remote_measure_device/<int:device> RemoteDeviceTcpConnection.request_weight user json ALL

Models touched 3

New fields (12)
  • active Boolean
    default=True
  • connection_mode Selection
    required=True selection=[('websockets', 'Web Sockets'), ('webservices', 'Web Services'), ('tcp', 'Direct connection')]
  • host Char
    required=True
  • instant_read Boolean
    help='Read right on as the widget gets rendered'
  • name Char
    required=True
  • non_stop_read Boolean
    help="Don't stop reading until the widget is disposed"
  • protocol Selection
    help='Operating protocol' required=True selection=[('f501', 'Scale F501')]
  • read_interval Integer
    help='(0 for no sleep between reads) Miliseconds to wait between device reads'
  • test_measure Float
    default=0.0
  • uom_category_id Many2one
    related='uom_id.category_id'
  • uom_factor Float
    related='uom_id.factor'
  • uom_id Many2one → uom.uom
    comodel_name='uom.uom' required=True string='Unit of measure'
Public methods (2)
  • 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_id Many2one → remote.measure.device
    comodel_name='remote.measure.device' help='Default remote measure device for this user' readonly=False related='res_users_settings_id.remote_measure_device_id'
Public methods (3)
  • SELF_READABLE_FIELDS(self)
    @property
  • SELF_WRITEABLE_FIELDS(self)
    @property
  • action_close_remote_device_wizard(self)

New fields (1)
  • remote_measure_device_id Many2one → remote.measure.device
    comodel_name='remote.measure.device' help='Default remote measure device for this user'
Public methods (0)

No public methods.

Loading…

Loading…