优化装夹工单,新增工件装夹page,名字为组件的page名称改为物料,去掉单独的工件装夹功能

This commit is contained in:
jinling.yang
2023-07-13 16:57:48 +08:00
parent 7743c9658c
commit 5beb7b3417
12 changed files with 91 additions and 276 deletions

View File

@@ -6,6 +6,7 @@ from odoo import api, fields, models, _
class MrpProduction(models.Model):
_inherit = 'mrp.production'
_description = "制造订单"
_order = 'create_date desc'
tray_ids = fields.One2many('sf.tray', 'production_id', string="托盘")
maintenance_count = fields.Integer(compute='_compute_maintenance_count', string="Number of maintenance requests")