创建刀具拆解单判断条件优化
This commit is contained in:
@@ -131,7 +131,7 @@ class MrsShelfLocationDataSync(models.Model):
|
||||
tool.sudo().tool_in_out_stock_location(location_id)
|
||||
if tool:
|
||||
location_id.product_sn_id = tool.barcode_id.id
|
||||
if item.get('State') == '预警' and tool.functional_tool_status != '预警':
|
||||
if item.get('State') == '报警' and tool.functional_tool_status != '报警':
|
||||
# 创建报警刀具拆解单和刀具报警记录
|
||||
tool.create_tool_dismantle()
|
||||
# 修改功能刀具标准状态值和已使用寿命值、功能刀具状态
|
||||
|
||||
Reference in New Issue
Block a user