Skip to content
Health
95/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by20/25
    3 modules depend on it
  • Maturity25/25
    In 10 Odoo series since 11.0

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

Security findings
Grave / minor (static analysis)
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:
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 IDNameModelTypeStatus
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_id Many2one → ir.model.fields
    domain="[('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'
  • ttype Selection
    ondelete={'serialized': 'cascade'} selection_add=[('serialized', 'serialized')]
Public methods (1)
  • write(self, vals)

New fields (7)
  • boolean Boolean
    sparse='data'
  • char Char
    sparse='data'
  • data Serialized
  • float Float
    sparse='data'
  • integer Integer
    sparse='data'
  • partner Many2one → res.partner
    sparse='data' args: 'res.partner'
  • selection Selection
    sparse='data' args: [('one', 'One'), ('two', 'Two')]
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…