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

Render a form for ordering parts

This commit is contained in:
Oliver Walters
2022-03-23 21:26:11 +11:00
parent f2806b2e41
commit 4fc605ee28
2 changed files with 228 additions and 0 deletions

View File

@ -558,6 +558,22 @@
{% endif %}
$("#part-order").click(function() {
inventreeGet(
'{% url "api-part-detail" part.pk %}',
{},
{
success: function(part) {
orderParts(
[part],
{}
);
}
}
);
return;
launchModalForm("{% url 'order-parts' %}", {
data: {
part: {{ part.id }},