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

Module: eCommerce

Entity: sale.order.line

Compute Method: _compute_is_donation

Inputs Method Outputs
  • product_id
for line in self:
            line.is_donation = bool(line.product_id and line.product_id._is_donation())

Back to entity