2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

Refactor delete views for SalesOrderAttachment and PurchaseOrderAttachment

This commit is contained in:
Oliver
2021-06-30 12:54:38 +10:00
parent 4d8e88c779
commit 4e23dbd0af
7 changed files with 14 additions and 55 deletions

View File

@ -76,17 +76,6 @@ $("#attachment-table").on('click', '.attachment-delete-button', function() {
title: '{% trans "Delete Attachment" %}',
reload: true,
});
return;
var url = `/build/attachment/${pk}/delete/`;
launchModalForm(
url,
{
reload: true,
}
);
});
$("#attachment-table").inventreeTable({});

View File

@ -12,7 +12,7 @@ from django.forms import HiddenInput
from django.urls import reverse
from part.models import Part
from .models import Build, BuildItem, BuildOrderAttachment
from .models import Build, BuildItem
from . import forms
from stock.models import StockLocation, StockItem