fix: 多了一次save调用
This commit is contained in:
parent
759bd3e149
commit
2982bccf7f
|
@ -64,7 +64,6 @@ class InmService:
|
|||
if instance.type == MIO.MIO_TYPE_DO_IN: # 生产入库需要记录production_dept字段
|
||||
if mb.production_dept is None or mb.production_dept == belong_dept:
|
||||
mb.production_dept = belong_dept
|
||||
mb.save()
|
||||
else:
|
||||
raise ParseError('同种物料不同生产车间应该有不同批次号!')
|
||||
mb.save()
|
||||
|
|
Loading…
Reference in New Issue