Repository
OCA/iot · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
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 07:57:19
Authors
Odoo Community Association (OCA), Creu Blanca
Maintainers
Odoo Community Association (OCA), Creu Blanca
Committers
sergio-teruel, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
OCA/iot:
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
iot_device_form_view iot.device.form (in iot_custom_field_oca) iot.device form Inherits iot_oca.iot_device_form
iot_device_option_iot_option_view iot.device.option New
iot_device_property_form_view iot.device.property.form (in iot_option_oca) iot.device.property form New
iot_device_property_search_view iot.device.property.search (in iot_option_oca) iot.device.property search New
iot_device_property_tree_view iot.device.property.tree (in iot_option_oca) iot.device.property tree New
iot_template_form_view iot.template.form (in iot_custom_field_oca) iot.template form Inherits iot_template_oca.iot_template_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (7)

New fields (1)
  • option_ids One2many → iot.device.option
    inverse_name='device_id' args: 'iot.device.option'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • get_options(self)

New fields (14)
  • device_id Many2one → iot.device
    required=True args: 'iot.device'
  • field_name Char
    compute='_compute_field_name' help='Technical name of the field where the value is stored.'
  • field_type Selection
    related='property_id.field_type'
  • name Char
    related='property_id.name'
  • property_id Many2one → iot.device.property
    comodel_name='iot.device.property' required=True string='Property'
  • required Boolean
    related='property_id.required'
  • sequence Integer
    index=True
  • value Char
    compute='_compute_value' help='Value, always converted to/from the typed field.' inverse='_inverse_value' search='_search_value'
  • value_bool Boolean
    index=True string='Yes/No value'
  • value_date Date
    index=True string='Date value'
  • value_float Float
    index=True string='Decimal number value'
  • value_int Integer
    index=True string='Whole number value'
  • value_str Char
    index=True string='Text value' translate=True
  • widget Selection
    readonly=True related='property_id.widget'
Public methods (0)

No public methods.

New fields (7)
  • default_value Char
    help='Will be applied by default to all custom values of this property. This is a char field, so you have to enter some value that can be converted to the field type you choose.' translate=True
  • field_type Selection
    compute='_compute_field_type' selection=[('str', 'Text'), ('int', 'Whole number'), ('float', 'Decimal number'), ('bool', 'Yes/No'), ('date', 'Date')] store=True
  • is_action Boolean
  • name Char
    required=True translate=True
  • required Boolean
  • tech_name Char
    required=True
  • widget Selection
    default='char' help='Type of information that can be stored in the property.' required=True selection=[('boolean', 'Boolean'), ('float', 'Decimal'), ('integer', 'Integer'), ('date', 'Date'), ('char', 'Single line text'), ('text', 'Multi line Text'), ('html', 'Complex text')]
Public methods (0)

No public methods.

New fields (1)
  • property_ids Many2many → iot.device.property
    args: 'iot.device.property'
Public methods (1)
  • apply_template(self, device, keys)

New fields (1)
  • view_mode Selection
    ondelete={'iot_option': 'cascade'} selection_add=[('iot_option', 'IoT Option')]
Public methods (0)

No public methods.

New fields (1)
  • type Selection
    ondelete={'iot_option': 'cascade'} selection_add=[('iot_option', 'IoT Option')]
Public methods (0)

No public methods.

Loading…

Loading…

Loading…