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

Module: Stock Quant Cost Info

Entity: stock.quant

Compute Method: _compute_adjustment_cost

Inputs Method Outputs
  • inventory_diff_quantity
  • product_id
  • product_id.standard_price
for record in self:
            record.adjustment_cost = False
            if record.inventory_diff_quantity:
                record.adjustment_cost = (
                    record.inventory_diff_quantity * record.product_id.standard_price
                )

Back to entity