工单异常处理

This commit is contained in:
胡尧
2024-10-14 15:18:27 +08:00
parent 4a928735eb
commit e2bd36ca16
14 changed files with 221 additions and 2 deletions

View File

@@ -189,6 +189,7 @@ class Manufacturing_Connect(http.Controller):
request.env['sf.production.plan'].sudo().search([('production_id', '=', production_id)]).write(
{'actual_start_time': workorder.date_start,
'state': 'processing'})
res.update({'workorder_id': workorder.id})
except Exception as e:
res = {'Succeed': False, 'ErrorCode': 202, 'Error': e}