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

Module: Manufacturing

Entity: mrp.routing.workcenter

Compute Method: _compute_cost

View 20.0
Inputs Method Outputs
  • time_total
  • workcenter_id
  • workcenter_id.costs_hour
+ for operation in self:
+             operation.cost = (operation.time_total / 60.0) * operation.workcenter_id.costs_hour
  • cost

Back to entity