diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index bf7d149..c074d2b 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -442,6 +442,10 @@ class WProductViewSet(ListModelMixin, GenericViewSet): if is_mtestok: WpmServies.update_plan_state_by_mtestok(obj.subproduction_plan.production_plan) obj.save() + change_str = 'mtest_notok' + if is_mtestok: + change_str = 'mtest_ok' + WpmServies.add_wproduct_flow_log(instance=obj, change_str=change_str) return Response() class WproductTicketViewSet(ListModelMixin, GenericViewSet):