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

Module: Purchase Request to Purchase Agreement

Entity: purchase.request

Compute Method: _compute_requisition_count

Inputs Method Outputs
for rec in self:
            rec.requisition_count = len(
                rec.mapped("line_ids.requisition_lines.requisition_id")
            )

Back to entity