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

Module: Stock Request Purchase

Entity: purchase.order

Compute Method: _compute_stock_request_ids

Inputs Method Outputs
for rec in self:
            rec.stock_request_ids = rec.order_line.mapped("stock_request_ids")
            rec.stock_request_count = len(rec.stock_request_ids)

Back to entity