1、解决刀具物料采购时,自动生成序列号重复问题;2、优化刀具物料生成序列号时,自动更新刀具物料查询记录的方法

This commit is contained in:
yuxianghui
2024-03-19 17:20:19 +08:00
parent bb78404772
commit 952e663b31
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class StockLot(models.Model):
records = super(StockLot, self).create(vals_list)
for record in records:
if record.product_id.categ_id.name == '刀具':
record.tool_material_status = '可用'
record.tool_material_status = '未入库'
record.enroll_tool_material_stock()
return records