Iot Custom Field Oca
iot_option_oca · OCA/iot
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 48 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
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
3 migration notes
7 models
6 views
0 HTTP endpoints
Migration considerations
IotDeviceOption— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceiot_device_property_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceiot_device_property_tree_view— 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
- None
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 |
|---|---|---|---|---|
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_idsOne2many → iot.device.optioninverse_name='device_id' args: 'iot.device.option'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
get_options(self)
New fields (14)
-
device_idMany2one → iot.devicerequired=True args: 'iot.device' -
field_nameCharcompute='_compute_field_name'help='Technical name of the field where the value is stored.' -
field_typeSelectionrelated='property_id.field_type' -
nameCharrelated='property_id.name' -
property_idMany2one → iot.device.propertycomodel_name='iot.device.property'required=Truestring='Property' -
requiredBooleanrelated='property_id.required' -
sequenceIntegerindex=True -
valueCharcompute='_compute_value'help='Value, always converted to/from the typed field.'inverse='_inverse_value'search='_search_value' -
value_boolBooleanindex=Truestring='Yes/No value' -
value_dateDateindex=Truestring='Date value' -
value_floatFloatindex=Truestring='Decimal number value' -
value_intIntegerindex=Truestring='Whole number value' -
value_strCharindex=Truestring='Text value'translate=True -
widgetSelectionreadonly=Truerelated='property_id.widget'
No public methods.
New fields (7)
-
default_valueCharhelp='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_typeSelectioncompute='_compute_field_type'selection=[('str', 'Text'), ('int', 'Whole number'), ('float', 'Decimal number'), ('bool', 'Yes/No'), ('date', 'Date')]store=True -
is_actionBoolean -
nameCharrequired=Truetranslate=True -
requiredBoolean -
tech_nameCharrequired=True -
widgetSelectiondefault='char'help='Type of information that can be stored in the property.'required=Trueselection=[('boolean', 'Boolean'), ('float', 'Decimal'), ('integer', 'Integer'), ('date', 'Date'), ('char', 'Single line text'), ('text', 'Multi line Text'), ('html', 'Complex text')]
No public methods.
New fields (1)
-
property_idsMany2many → iot.device.propertyargs: 'iot.device.property'
-
apply_template(self, device, keys)
New fields (1)
-
view_modeSelectionondelete={'iot_option': 'cascade'}selection_add=[('iot_option', 'IoT Option')]
No public methods.
New fields (1)
-
typeSelectionondelete={'iot_option': 'cascade'}selection_add=[('iot_option', 'IoT Option')]
No public methods.
Loading…
Loading…
Loading…