mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-03 05:48:47 +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…
x
Reference in New Issue
Block a user