control.unassign_control to support batching

This commit is contained in:
Andrej730
2025-09-09 14:40:42 +05:00
parent abfb56350d
commit a9c0c1f4ba
8 changed files with 32 additions and 28 deletions
@@ -86,7 +86,7 @@ class Usecase:
for product in products:
ifcopenshell.api.control.unassign_control(
self.file,
related_object=product,
related_objects=[product],
relating_control=cost_item,
)
self.update_cost_item_count(cost_item)