Merge branch 'feature/库存模块优化' into feature/新增功能刀具拆解单模型

This commit is contained in:
yuxianghui
2024-04-23 14:18:34 +08:00
13 changed files with 632 additions and 102 deletions

View File

@@ -110,6 +110,8 @@ class StockLot(models.Model):
record.tool_material_status = '可用'
elif record.quant_ids[-1].location_id.name == '刀具组装位置':
record.tool_material_status = '在用'
elif record.quant_ids[-1].location_id.name == 'Scrap':
record.tool_material_status = '报废'
else:
record.tool_material_status = '未入库'
if record.tool_material_search_id: