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

Refactor MakeVariant form

- Now is essentially identical to the DuplicatePart form
- Uses the API form structure
This commit is contained in:
Oliver Walters
2021-08-05 00:24:38 +10:00
parent 0e8fb6a5ad
commit aa4ed9feb0
6 changed files with 15 additions and 182 deletions

View File

@@ -525,10 +525,11 @@
loadPartVariantTable($('#variants-table'), {{ part.pk }});
$('#new-variant').click(function() {
launchModalForm(
"{% url 'make-part-variant' part.id %}",
duplicatePart(
{{ part.pk}},
{
follow: true,
variant: true,
}
);
});