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

Updates to build forms / etc

This commit is contained in:
Oliver Walters
2020-10-20 22:37:21 +11:00
parent 2df0f03a9a
commit 2e4613e702
4 changed files with 63 additions and 14 deletions

View File

@ -1,6 +1,37 @@
{% load i18n %}
{% load inventree_extras %}
function newBuildOrder(options={}) {
/* Launch modal form to create a new BuildOrder.
*/
launchModalForm(
"{% url 'build-create' %}",
{
follow: true,
data: options.data || {},
callback: [
{
field: 'part',
action: function(value) {
inventreeGet(
`/api/part/${value}/`, {},
{
success: function(response) {
//enableField('serial_numbers', response.trackable);
//clearField('serial_numbers');
}
}
);
},
}
],
}
)
}
function loadBuildTable(table, options) {
// Display a table of Build objects