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.requisition

Compute Method: _compute_purchase_request_count

Inputs Method Outputs
for rec in self:
            rec.purchase_request_count = len(
                rec.mapped("line_ids.purchase_request_lines.request_id")
            )

Back to entity