fix itemized_carrier.unassign_child_resource

This commit is contained in:
Junhan Chang
2025-10-19 05:19:19 +08:00
parent d78475de9a
commit 2d0ff87bc8
2 changed files with 9 additions and 8 deletions

View File

@@ -164,8 +164,9 @@ class ItemizedCarrier(ResourcePLR):
break
if not found:
raise ValueError(f"Resource {resource} is not assigned to this carrier")
if hasattr(resource, "unassign"):
resource.unassign()
super().unassign_child_resource(resource)
# if hasattr(resource, "unassign"):
# resource.unassign()
def get_child_identifier(self, child: ResourcePLR):
"""Get the identifier information for a given child resource.