mrp_routing.py 316 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import models
  4. class MrpRoutingWorkcenter(models.Model):
  5. _inherit = 'mrp.routing.workcenter'
  6. def _total_cost_per_hour(self):
  7. self.ensure_one()
  8. return self.workcenter_id.costs_hour