mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-28 11:59:23 +00:00
Bug fix
This commit is contained in:
@@ -800,13 +800,12 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user