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

Module: Personal Protective Equipment (PPE) Management

Entity: hr.personal.equipment.request

Compute Method: _compute_contains_ppe

Inputs Method Outputs
  • is_ppe
for rec in self:
            contains_ppe = False
            for line in rec.line_ids:
                if line.is_ppe:
                    contains_ppe = True
                    break
            rec.contains_ppe = contains_ppe

Back to entity