This commit is contained in:
yuxianghui
2024-06-13 14:59:49 +08:00
parent 42644d449f
commit 9c6ca3758b

View File

@@ -67,7 +67,7 @@ class FunctionalCuttingToolEntity(models.Model):
else: else:
record.current_location = '线边刀库' record.current_location = '线边刀库'
else: else:
record.current_location = quant_id.location_id.name record.current_location = '刀具房'
if record.current_location_id: if record.current_location_id:
record.sudo().get_location_num() record.sudo().get_location_num()
else: else: