1.新增检测报告链接地址字段
2.优化rfid码扫描 3.优化工单页面
This commit is contained in:
@@ -325,6 +325,7 @@ class Manufacturing_Connect(http.Controller):
|
||||
workpiece_delivery = request.env['sf.workpiece.delivery'].sudo().search(
|
||||
[('feeder_station_destination', '=', ret['DeviceId'])])
|
||||
if workpiece_delivery:
|
||||
logging.info('workpiece_delivery.production_id:%s' % workpiece_delivery.production_id.id)
|
||||
workpiece_delivery.production_id.write({'production_line_state': '已上产线'})
|
||||
else:
|
||||
res = {'Succeed': False, 'ErrorCode': 203, 'Error': '该DeviceId没有对应的工件配送数据'}
|
||||
@@ -354,6 +355,7 @@ class Manufacturing_Connect(http.Controller):
|
||||
workpiece_delivery = request.env['sf.workpiece.delivery'].sudo().search(
|
||||
[('feeder_station_destination', '=', ret['DeviceId'])])
|
||||
if workpiece_delivery:
|
||||
logging.info('workpiece_delivery.production_id:%s' % workpiece_delivery.production_id.id)
|
||||
workpiece_delivery.production_id.write({'production_line_state': '已下产线'})
|
||||
else:
|
||||
res = {'Succeed': False, 'ErrorCode': 203, 'Error': '该DeviceId没有对应的工件配送数据'}
|
||||
|
||||
Reference in New Issue
Block a user