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

Module: Donation

Entity: donation.line

Compute Method: _compute_in_kind

Inputs Method Outputs
for line in self:
            in_kind = False
            if (
                line.product_id.donation_type
                and line.product_id.donation_type.startswith("donation_in_kind")
            ):
                in_kind = True
            line.in_kind = in_kind

Back to entity