半成品领料bug
This commit is contained in:
parent
6482a841d5
commit
decb1e4aac
|
@ -95,7 +95,7 @@ class PickSerializer(serializers.Serializer):
|
|||
# 更新半成品表
|
||||
wids = IProduct.objects.filter(pk__in=[x.id for x in iproducts]).values_list('wproduct', flat=True)
|
||||
wproducts = WProduct.objects.filter(pk__in=wids)
|
||||
first_step = Step.objects.get(pk=sp.steps[0].id)
|
||||
first_step = Step.objects.get(pk=sp.steps[0]['id'])
|
||||
wproducts.update(step=first_step, is_executed=False,
|
||||
act_state=WProduct.WPR_ACT_STATE_DOING, is_hidden=False, warehouse=None,
|
||||
subproduction_plan=sp, production_plan=sp.production_plan)
|
||||
|
|
Loading…
Reference in New Issue