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.relation

Compute Method: _compute_other_partner_id

Inputs Method Outputs
"""Show inverse type when coming from right partner."""
current_partner = self._get_current_partner()
for this in self:
            this.other_partner_id = (
                this.left_partner_id
                if this.right_partner_id == current_partner
                else this.right_partner_id
            )

Back to entity