mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Merge pull request #2832 from SchrodingersGat/top-level-parents
Explicitly mark "parent" field in PartCategory and StockLocation
This commit is contained in:
commit
cf9bd62f9b
@ -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