mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Support structural part categories (#3931)
* Support structural part categories Structural categories cannot have parts assigned (only sub-categories) Fixed #3897 * Fixed unit test * Fix Oliver's review comments
This commit is contained in:
@ -81,6 +81,9 @@ function partFields(options={}) {
|
||||
|
||||
return fields;
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
structural: false,
|
||||
}
|
||||
},
|
||||
name: {},
|
||||
@ -298,6 +301,7 @@ function categoryFields() {
|
||||
default_keywords: {
|
||||
icon: 'fa-key',
|
||||
},
|
||||
structural: {},
|
||||
icon: {
|
||||
help_text: `{% trans "Icon (optional) - Explore all available icons on" %} <a href="https://fontawesome.com/v5/search?s=solid" target="_blank" rel="noopener noreferrer">Font Awesome</a>.`,
|
||||
placeholder: 'fas fa-tag',
|
||||
|
Reference in New Issue
Block a user