Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Partner Relations

Entity: res.partner

Compute Method: _compute_relation_count

Inputs Method Outputs
"""Combined count for left and right partners."""
for this in self:
            this.relation_count = len(this.relation_left_ids.filtered("active")) + len(
                this.relation_right_ids.filtered("active")
            )

Back to entity