2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Refactored DuplicatePart form

- API endpoint now takes care of duplication of other data
This commit is contained in:
Oliver Walters
2021-08-05 00:16:42 +10:00
parent 2cb0b448b7
commit 0e8fb6a5ad
5 changed files with 43 additions and 132 deletions

View File

@@ -486,12 +486,7 @@
{% if roles.part.add %}
$("#part-duplicate").click(function() {
launchModalForm(
"{% url 'part-duplicate' part.id %}",
{
follow: true,
}
);
duplicatePart({{ part.pk }});
});
{% endif %}