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

Module: WMS Accounting

Entity: product.product

Compute Method: _compute_value_svl

Inputs Method Outputs
"""Compute totals of multiple svl related values"""
self.company_currency_id = self.env.company.currency_id
valuation_layer_groups = self._get_valuation_layer_groups()
group_mapping = {product: aggregates for product, *aggregates in valuation_layer_groups}
for product in self:
            aggregates = group_mapping.get(product._origin, (0, 0))
            vals = product._prepare_valuation_layer_field_values(aggregates)
            product.update(vals)

Back to entity