增加设备oee数据

This commit is contained in:
mgw
2024-08-26 17:20:46 +08:00
parent 54317a529e
commit e1a4784092
3 changed files with 111 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ class ResWorkcenter(models.Model):
oee_target = fields.Float(
string='OEE Target', help="Overall Effective Efficiency Target in percentage", default=90, tracking=True)
oee = fields.Float(compute='_compute_oee', help='Overall Equipment Effectiveness, based on the last month', store=True)
time_start = fields.Float('Setup Time', tracking=True)
time_stop = fields.Float('Cleanup Time', tracking=True)