1、去除工单开始按钮的二次确认;2、优化托盘入库后夹具物料查询中的状态还是未入库的问题

This commit is contained in:
yuxianghui
2025-01-06 13:11:22 +08:00
parent a7c3a604a6
commit bc475441a2
3 changed files with 22 additions and 10 deletions

View File

@@ -143,6 +143,10 @@ class StockLot(models.Model):
record.tool_material_status = '报废'
else:
record.tool_material_status = '未入库'
elif record.product_id.categ_id.name in ['夹具']:
if (record.quant_ids and record.quant_ids[-1].location_id.name in ['夹具房']
and record.tool_material_status == '未入库'):
record.tool_material_status = '可用'
@api.model
def name_search(self, name='', args=None, operator='ilike', limit=100):