修改模型id为模型ID,增加机台判断

This commit is contained in:
胡尧
2025-04-24 14:58:50 +08:00
parent 40137ba69c
commit 4b29def105
5 changed files with 8 additions and 5 deletions

View File

@@ -1821,7 +1821,7 @@ class MrpProduction(models.Model):
logging.info('update_programming_state error:%s' % e)
raise UserError("更新编程单状态失败,请联系管理员")
model_id = fields.Char('模型id', related='product_id.model_id')
model_id = fields.Char('模型ID', related='product_id.model_id')
# 编程记录

View File

@@ -1814,7 +1814,7 @@ class ResMrpWorkOrder(models.Model):
lazy=lazy
)
model_id = fields.Char('模型id', related='production_id.model_id')
model_id = fields.Char('模型ID', related='production_id.model_id')
class CNCprocessing(models.Model):

View File

@@ -787,7 +787,7 @@ class ResProductMo(models.Model):
glb_url = fields.Char('glb文件地址')
area = fields.Float('表面积(m²)')
auto_machining = fields.Boolean('自动化加工(模型识别)', default=False)
model_id = fields.Char('模型id')
model_id = fields.Char('模型ID')
@api.depends('name')