2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

Add "groups" to API forms

This commit is contained in:
Oliver Walters
2021-08-13 21:48:48 +10:00
parent cd4a797e71
commit 5b42ab7332
4 changed files with 161 additions and 19 deletions

View File

@ -276,6 +276,7 @@
constructForm('{% url "api-part-list" %}', {
method: 'POST',
fields: fields,
groups: partGroups(),
title: '{% trans "Create Part" %}',
onSuccess: function(data) {
// Follow the new part