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

Module: Purchase Agreements

Entity: purchase.order

Compute Method: _compute_has_alternatives

Inputs Method Outputs
self.has_alternatives = False
self.filtered(lambda po: po.purchase_group_id).has_alternatives = True

Back to entity