1、去除工单开始按钮的二次确认;2、优化托盘入库后夹具物料查询中的状态还是未入库的问题
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user