fix: 多了一次save调用

This commit is contained in:
caoqianming 2024-04-02 17:22:56 +08:00
parent 759bd3e149
commit 2982bccf7f
1 changed files with 0 additions and 1 deletions

View File

@ -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()