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

Module: CRM Phone Calls

Entity: res.partner

Compute Method: _compute_phonecall_count

Inputs Method Outputs
  • id
"""Calculate number of phonecalls."""
for partner in self:
            partner.phonecall_count = self.env["crm.phonecall"].search_count(
                [("partner_id", "=", partner.id)]
            )

Back to entity