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

View 18.0
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