Sparse Fields
base_sparse_field · odoo/odoo
Health
95/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by20/253 modules depend on it
-
Maturity25/25In 10 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Required by
3
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.38 MB
Module directory on disk
Code analysis
0 migration notes
3 models
2 views
0 HTTP endpoints
Description
The purpose of this module is to implement "sparse" fields, i.e., fields that are mostly null. This implementation circumvents the PostgreSQL limitation on the number of columns in a table. The values of all sparse fields are stored in a "serialized" field in the form of a JSON mapping.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- attribute_set, fs_storage, queue_job
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
field_form_view |
ir.model.fields | form | Inherits base.view_model_fields_form | |
model_form_view |
ir.model | form | Inherits base.view_model_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
serialization_field_idMany2one → ir.model.fieldsdomain="[('ttype','=','serialized'), ('model_id', '=', model_id)]"help='If set, this field will be stored in the sparse structure of the serialization field, instead of having its own database column. This cannot be changed after creation.'ondelete='cascade'string='Serialization Field' args: 'ir.model.fields' -
ttypeSelectionondelete={'serialized': 'cascade'}selection_add=[('serialized', 'serialized')]
-
write(self, vals)
New fields (7)
-
booleanBooleansparse='data' -
charCharsparse='data' -
dataSerialized -
floatFloatsparse='data' -
integerIntegersparse='data' -
partnerMany2one → res.partnersparse='data' args: 'res.partner' -
selectionSelectionsparse='data' args: [('one', 'One'), ('two', 'Two')]
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…