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:
parent
db75c31f6d
commit
c7003fbed8
@ -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" %}',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user