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

Compute Method: _compute_is_editable

Inputs Method Outputs
res = super()._compute_is_editable()
editable_records = self.filtered(lambda line: line.requisition_lines)
editable_records.write({"is_editable": False})
return res

Back to entity