diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index 7bd40d1..9a743f8 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -596,7 +596,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Upd newstep, _ = WpmServies.get_next_step(i.subproduction_plan, step) wpr = dict(material=i.material, step=newstep, act_state=WProduct.WPR_ACT_STATE_DOWAIT, remark='', - subproduction_plan=i.subproduction_plan) + subproduction_plan=i.subproduction_plan, create_by=request.user) for x in range(i.count): ins = WProduct.objects.create(**wpr) # 添加日志