2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 03:56:43 +00:00

Create a default shipment when creating SO

This commit is contained in:
Maksim Stojkovic 2022-05-18 22:01:47 +10:00
parent db75c31f6d
commit c7003fbed8

View File

@ -362,6 +362,17 @@ function createSalesOrder(options={}) {
} }
}, },
onSuccess: function(data) { onSuccess: function(data) {
inventreePut(
'{% url "api-so-shipment-list" %}',
{
order: data.pk,
reference: 1
},
{
method: 'POST'
}
);
location.href = `/order/sales-order/${data.pk}/`; location.href = `/order/sales-order/${data.pk}/`;
}, },
title: '{% trans "Create Sales Order" %}', title: '{% trans "Create Sales Order" %}',