2
0
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 ()

* Add option to disable the build output completion if required tests not passed

Fixes 

* 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:
Miklós Márton
2024-02-18 00:28:37 +01:00
committed by GitHub
parent 7adf2e0835
commit ad1c1ae604
7 changed files with 138 additions and 6 deletions
InvenTree
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',