取消默认分组展示

This commit is contained in:
mgw
2024-06-25 14:22:51 +08:00
parent eb2851391b
commit 35ac51bc10
2 changed files with 3 additions and 2 deletions

View File

@@ -1189,7 +1189,7 @@ class CustomStockMove(models.Model):
# todo 待控制
if not lot_name:
raise ValidationError("请先分配序列号")
# 增加"当为坯料时,只打印序列号的前面部分"
if record.lot_name: # 确保 lot_name 存在
if record.product_id.categ_id.name == '坯料':