diff --git a/InvenTree/order/templates/order/so_attachments.html b/InvenTree/order/templates/order/so_attachments.html index 89f09541d1..9c29fe5abe 100644 --- a/InvenTree/order/templates/order/so_attachments.html +++ b/InvenTree/order/templates/order/so_attachments.html @@ -53,8 +53,6 @@ loadAttachmentTable( }); }, onDelete: function(pk) { - var pk = button.attr('pk'); - constructForm(`/api/order/so/attachment/${pk}/`, { method: 'DELETE', confirmMessage: '{% trans "Confirm Delete Operation" %}',