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.supplierinfo

Compute Method: _compute_price_discounted

Inputs Method Outputs
for rec in self:
            product_uom = (rec.product_id or rec.product_tmpl_id).uom_id
            rec.price_discounted = rec.product_uom_id._compute_price(rec.price, product_uom) * (1 - rec.discount / 100)

Back to entity