Merge branch 'feature/库存模块优化' into feature/新增功能刀具拆解单模型
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user