Explicitly mark "parent" field in PartCategory and StockLocation as not required in API form fields

This commit is contained in:
Oliver Walters 2022-04-15 19:22:06 +10:00
parent d43158ab1b
commit 18de4676dc
2 changed files with 2 additions and 0 deletions

View File

@ -293,6 +293,7 @@ function categoryFields() {
return {
parent: {
help_text: '{% trans "Parent part category" %}',
required: false,
},
name: {},
description: {},

View File

@ -107,6 +107,7 @@ function stockLocationFields(options={}) {
var fields = {
parent: {
help_text: '{% trans "Parent stock location" %}',
required: false,
},
name: {},
description: {},