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

Module: Field Service - Purchase

Entity: fsm.person

Compute Method: _compute_pricelist_count

Inputs Method Outputs
  • partner_id
  • partner_id.id
for worker in self:
            worker.pricelist_count = self.env["product.supplierinfo"].search_count(
                [("partner_id", "=", worker.partner_id.id)]
            )

Back to entity