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

Compute Method: _compute_product_lst_price

Inputs Method Outputs
to_uom = None
if 'uom' in self._context:
            to_uom = self.env['uom.uom'].browse(self._context['uom'])
for product in self:
            if to_uom:
                list_price = product.uom_id._compute_price(product.list_price, to_uom)
            else:
                list_price = product.list_price
            product.lst_price = list_price + product.price_extra

Back to entity