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

Module: Products & Pricelists

Entity: res.partner

Compute Method: _compute_product_pricelist

Inputs Method Outputs
  • id
res = self.env['product.pricelist']._get_partner_pricelist_multi(self._ids)
for partner in self:
            partner.property_product_pricelist = res.get(partner.id)

Back to entity