mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Tweak for part.js
This commit is contained in:
parent
7335bfae19
commit
40d6a1470f
@ -373,6 +373,9 @@ function duplicatePart(pk, options={}) {
|
|||||||
|
|
||||||
// Override the "variant_of" field
|
// Override the "variant_of" field
|
||||||
data.variant_of = pk;
|
data.variant_of = pk;
|
||||||
|
|
||||||
|
// By default, disable "is_template" when making a variant *of* a template
|
||||||
|
data.is_template = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructForm('{% url "api-part-list" %}', {
|
constructForm('{% url "api-part-list" %}', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user