2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-28 11:59:23 +00:00
This commit is contained in:
Oliver Walters
2026-05-23 05:45:07 +00:00
parent 74afdb34e6
commit 4bb54ca914
+1 -2
View File
@@ -800,14 +800,13 @@ class Build(
# Offload background task to take care of the expensive operations # Offload background task to take care of the expensive operations
InvenTree.tasks.offload_task( InvenTree.tasks.offload_task(
build.tasks.cancel_build( build.tasks.cancel_build,
self.pk, self.pk,
user.pk if user else None, user.pk if user else None,
remove_allocated_stock=remove_allocated_stock, remove_allocated_stock=remove_allocated_stock,
remove_incomplete_outputs=remove_incomplete_outputs, remove_incomplete_outputs=remove_incomplete_outputs,
group='build', group='build',
) )
)
@transaction.atomic @transaction.atomic
def deallocate_stock(self, build_line=None, output=None): def deallocate_stock(self, build_line=None, output=None):