2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

Remove references to old setting (#8018)

* Remove references to old setting

- Now offloaded to plugins

* Remove REPORT_ENABLE_TEST_REPORT setting

* Cleanup

* Add new boolean setting to control whether reports are attached automatically

* Attach generated report to model instance

* Update unit testing

* Bump API version
This commit is contained in:
Oliver
2024-09-06 15:15:16 +10:00
committed by GitHub
parent 9f92475af0
commit 07fac28b76
14 changed files with 86 additions and 36 deletions

View File

@ -21,6 +21,12 @@ export default function ReportTemplateTable() {
modelRenderer: (instance: any) => (
<YesNoButton value={instance.landscape} />
)
},
attach_to_model: {
label: t`Attach to Model`,
modelRenderer: (instance: any) => (
<YesNoButton value={instance.attach_to_model} />
)
}
}
}}

View File

@ -161,9 +161,7 @@ export default function SystemSettings() {
'REPORT_ENABLE',
'REPORT_DEFAULT_PAGE_SIZE',
'REPORT_DEBUG_MODE',
'REPORT_LOG_ERRORS',
'REPORT_ENABLE_TEST_REPORT',
'REPORT_ATTACH_TEST_REPORT'
'REPORT_LOG_ERRORS'
]}
/>
)