From 91e2dca945cbb5c0e0cc64a9ea4f195c19449dae Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Fri, 22 Jul 2016 19:39:35 +0200 Subject: [PATCH] [FIX] mrp: working_state should depend on time_ids when we just add one, OEE: efficiency -> effectiveness --- addons/mrp/models/mrp_workcenter.py | 4 ++-- addons/mrp/views/mrp_workcenter_views.xml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/mrp/models/mrp_workcenter.py b/addons/mrp/models/mrp_workcenter.py index 43bc966060b..465875cc35b 100644 --- a/addons/mrp/models/mrp_workcenter.py +++ b/addons/mrp/models/mrp_workcenter.py @@ -46,7 +46,7 @@ class MrpWorkcenter(models.Model): productive_time = fields.Float( 'Productive Time', compute='_compute_productive_time', help='Productive hours over the last month') - oee = fields.Float(compute='_compute_oee', help='Overall Equipment Efficiency, based on the last month') + oee = fields.Float(compute='_compute_oee', help='Overall Equipment Effectiveness, based on the last month') oee_target = fields.Float(string='OEE Target', help="OEE Target in percentage", default=90) performance = fields.Integer('Performance', compute='_compute_performance', help='Performance over the last month') @@ -72,7 +72,7 @@ class MrpWorkcenter(models.Model): workcenter.workorder_late_count = count_data.get(workcenter.id, 0) @api.multi - @api.depends('time_ids.date_end', 'time_ids.loss_type') + @api.depends('time_ids', 'time_ids.date_end', 'time_ids.loss_type') def _compute_working_state(self): for workcenter in self: time_log = self.env['mrp.workcenter.productivity'].search([('workcenter_id', '=', workcenter.id)], limit=1) diff --git a/addons/mrp/views/mrp_workcenter_views.xml b/addons/mrp/views/mrp_workcenter_views.xml index bfafaeda307..d946ee89020 100644 --- a/addons/mrp/views/mrp_workcenter_views.xml +++ b/addons/mrp/views/mrp_workcenter_views.xml @@ -59,7 +59,7 @@ - Overall Equipment Efficiency + Overall Equipment Effectiveness ir.actions.act_window mrp.workcenter.productivity form @@ -69,7 +69,7 @@ {'search_default_thismonth':True}

- Overall Equipment Efficiency: no working or blocked time. + Overall Equipment Effectiveness: no working or blocked time.

@@ -539,7 +539,7 @@ - Overall Equipment Efficiency + Overall Equipment Effectiveness ir.actions.act_window mrp.workcenter.productivity form @@ -548,7 +548,7 @@ {'search_default_thismonth':True}

- Overall Equipment Efficiency: no working or blocked time. + Overall Equipment Effectiveness: no working or blocked time.