1.工单新增rfid字段

2.修改中控对接的工单接口
3.快速订单材料,型号,客户修改为可选择
This commit is contained in:
jinling.yang
2024-02-21 14:52:14 +08:00
parent 9a4477de8b
commit 1e006b0bd7
6 changed files with 10 additions and 5 deletions

View File

@@ -20,9 +20,9 @@ class Manufacturing_Connect(http.Controller):
res = {'Succeed': True, 'Datas': []}
datas = request.httprequest.data
ret = json.loads(datas)
logging.info('RfidCode:%s' % ret)
logging.info('RfidCode:%s' % ret['RfidCode'])
workorder = request.env['mrp.workorder'].sudo().search(
[('production_id.name', '=', 'WH/MO/00071'), ('routing_type', '=', '装夹')])
[('rfid_code', '=', ret['RfidCode']), ('routing_type', '=', '装夹预调')])
if workorder:
for item in workorder:
res['Datas'].append({