装夹预调工单,要带图纸和模型文件及坯料长宽高参数的优化需求
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user