Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: BI View Editor
Entity: bve.view
Compute Method: _compute_serialized_data
| Inputs | Method | Outputs |
|---|---|---|
|
- for bve_view in self: - serialized_data = [] - for line in bve_view.line_ids.sorted(key=lambda r: r.sequence): - serialized_data.append( - { - "sequence": line.sequence, - "model_id": line.model_id.id, - "id": line.field_id.id, - "name": line.name, - "model_name": line.model_id.name, - "model": line.model_id.model, - "type": line.ttype, - "table_alias": line.table_alias, - "description": line.description, - "row": line.row, - "column": line.column, - "measure": line.measure, - "list": line.in_list, - "join_node": line.join_node, - "relation": line.relation, - } - ) - bve_view.data = json.dumps(serialized_data) |
|
