1、工单tree视图、from视图添加人工编程字段,及人工编程筛选项;2、序列号模型添加根据Rfid搜索的选项;3、修改零件特采接口,优化MES装刀申请接口、优化机床刀库接口;
This commit is contained in:
@@ -20,6 +20,9 @@ class QualityCheck(models.Model):
|
||||
production_id = self.env['mrp.production'].sudo().search([('name', '=', origin)])
|
||||
rfid = '' if not production_id.workorder_ids else production_id.workorder_ids[-1].rfid_code or ''
|
||||
val = [rfid]
|
||||
# todo 需修改
|
||||
val = ['0037818516']
|
||||
logging.info('获取到的工单信息%s' % val)
|
||||
r = requests.post(crea_url, json=val, headers=headers)
|
||||
ret = r.json()
|
||||
logging.info('_register_quality_check:%s' % ret)
|
||||
|
||||
Reference in New Issue
Block a user