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: stock.quant

Compute Method: _compute_cost_method

View 18.0 View 20.0
Inputs Method Outputs
  • product_categ_id
  • company_id
+ for quant in self:
+             quant.cost_method = (
+                 quant.product_categ_id.with_company(
+                     quant.company_id
+                 ).property_cost_method
+                 or (quant.company_id or self.env.company).cost_method
+             )
  • cost_method

Back to entity