装夹预调工单,要带图纸和模型文件及坯料长宽高参数的优化需求

This commit is contained in:
mgw
2024-04-22 20:03:16 +08:00
parent e108e2d5d6
commit 49e4f92a91
4 changed files with 51 additions and 1 deletions

View File

@@ -121,6 +121,19 @@ class ResMrpWorkOrder(models.Model):
# 获取数据状态
data_state = fields.Boolean(string='获取数据状态', default=False)
# 坯料长宽高
material_length = fields.Float(string='')
material_width = fields.Float(string='')
material_height = fields.Float(string='')
# 零件图号
part_number = fields.Char(string='零件图号')
# 工序状态
process_state = fields.Selection([
('待装夹', '待装夹'),
('待检测', '待检测'),
('已完工', '已完工')
], string='工序状态', default='待装夹')
@api.depends('production_id')
def _compute_save_name(self):
"""