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

Module: CRM Industry

Entity: crm.lead

Compute Method: _compute_industry_id

Inputs Method Outputs
  • partner_id
  • partner_id.industry_id
for record in self:
            if record.partner_id and record.partner_id.industry_id:
                record.industry_id = record.partner_id.industry_id
            else:
                record.industry_id = False

Back to entity