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

Module: Products & Pricelists

Entity: product.pricelist.item

Compute Method: _compute_is_plain_discount

Inputs Method Outputs
for item in self:
            item.is_plain_discount = item._is_discount_rule() and not (
                item.price_round
                or item.price_surcharge
                or item.price_min_margin
                or item.price_max_margin
            )

Back to entity