diff --git a/sf_warehouse/models/sync_common.py b/sf_warehouse/models/sync_common.py index 491495ec..8ac061c5 100644 --- a/sf_warehouse/models/sync_common.py +++ b/sf_warehouse/models/sync_common.py @@ -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() # 修改功能刀具标准状态值和已使用寿命值、功能刀具状态