mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-06 23:38:48 +00:00
Explicitly mark "parent" field in PartCategory and StockLocation as not required in API form fields
This commit is contained in:
parent
d43158ab1b
commit
18de4676dc
@ -293,6 +293,7 @@ function categoryFields() {
|
|||||||
return {
|
return {
|
||||||
parent: {
|
parent: {
|
||||||
help_text: '{% trans "Parent part category" %}',
|
help_text: '{% trans "Parent part category" %}',
|
||||||
|
required: false,
|
||||||
},
|
},
|
||||||
name: {},
|
name: {},
|
||||||
description: {},
|
description: {},
|
||||||
|
@ -107,6 +107,7 @@ function stockLocationFields(options={}) {
|
|||||||
var fields = {
|
var fields = {
|
||||||
parent: {
|
parent: {
|
||||||
help_text: '{% trans "Parent stock location" %}',
|
help_text: '{% trans "Parent stock location" %}',
|
||||||
|
required: false,
|
||||||
},
|
},
|
||||||
name: {},
|
name: {},
|
||||||
description: {},
|
description: {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user