mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-23 07:10:55 +00:00
Add option to disable the build output completion if are tests not passed (#6057)
* Add option to disable the build output completion if required tests not passed Fixes #5037 * Fix review comments * Added tests * Add settinsg option to PUI * Utilize F" string concatenation * Add validation to serializer too to being able to generate proper error message in the case if multiple outputs having incomplete tests * Fix other build tests failing because of the new stock items * Remove len from array empty check * Update serializers.py * Update models.py Simplify error message * Update settings.py Formatting fix * Update models.py More style fixes * Update models.py Remove empty line --------- Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
InvenTree
build
common
templates
InvenTree
settings
src/frontend/src/pages/Index/Settings
@ -225,7 +225,14 @@ export default function SystemSettings() {
|
||||
name: 'buildorders',
|
||||
label: t`Build Orders`,
|
||||
icon: <IconTools />,
|
||||
content: <GlobalSettingList keys={['BUILDORDER_REFERENCE_PATTERN']} />
|
||||
content: (
|
||||
<GlobalSettingList
|
||||
keys={[
|
||||
'BUILDORDER_REFERENCE_PATTERN',
|
||||
'PREVENT_BUILD_COMPLETION_HAVING_INCOMPLETED_TESTS'
|
||||
]}
|
||||
/>
|
||||
)
|
||||
},
|
||||
{
|
||||
name: 'purchaseorders',
|
||||
|
Reference in New Issue
Block a user