diff --git a/sf_tool_management/models/functional_tool.py b/sf_tool_management/models/functional_tool.py index 1badbefa..09b2e973 100644 --- a/sf_tool_management/models/functional_tool.py +++ b/sf_tool_management/models/functional_tool.py @@ -67,7 +67,7 @@ class FunctionalCuttingToolEntity(models.Model): else: record.current_location = '线边刀库' else: - record.current_location = quant_id.location_id.name + record.current_location = '刀具房' if record.current_location_id: record.sudo().get_location_num() else: