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

Module: Sale Partner Primeship

Entity: res.partner

Compute Method: _compute_primeship_count

View 18.0
Inputs Method Outputs
  • commercial_partner_id
  • commercial_partner_id.primeship_ids
- for record in self:
-             record.primeship_count = len(record.commercial_partner_id.primeship_ids)
  • primeship_count

Back to entity