mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Create a default shipment when creating SO
This commit is contained in:
parent
db75c31f6d
commit
c7003fbed8
@ -362,6 +362,17 @@ function createSalesOrder(options={}) {
|
||||
}
|
||||
},
|
||||
onSuccess: function(data) {
|
||||
inventreePut(
|
||||
'{% url "api-so-shipment-list" %}',
|
||||
{
|
||||
order: data.pk,
|
||||
reference: 1
|
||||
},
|
||||
{
|
||||
method: 'POST'
|
||||
}
|
||||
);
|
||||
|
||||
location.href = `/order/sales-order/${data.pk}/`;
|
||||
},
|
||||
title: '{% trans "Create Sales Order" %}',
|
||||
|
Loading…
Reference in New Issue
Block a user