mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
This commit is contained in:
parent
bf8a59c604
commit
2986f8d61a
@ -414,6 +414,11 @@ function duplicatePart(pk, options={}) {
|
|||||||
data.is_template = false;
|
data.is_template = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Clear IPN field if PART_ALLOW_DUPLICATE_IPN is set to False
|
||||||
|
if (!global_settings['PART_ALLOW_DUPLICATE_IPN']) {
|
||||||
|
data.IPN = '';
|
||||||
|
}
|
||||||
|
|
||||||
constructForm('{% url "api-part-list" %}', {
|
constructForm('{% url "api-part-list" %}', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
fields: fields,
|
fields: fields,
|
||||||
|
Loading…
Reference in New Issue
Block a user