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

Module: Purchase Order Triple Discount

Entity: triple.discount.mixin

Compute Method: _compute_discount

Inputs Method Outputs
for line in self:
            line.discount = line._get_aggregated_multiple_discounts(
                [line[x] for x in line._get_multiple_discount_field_names()]
            )

Back to entity