2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

Add 'REPORT_DEBUG_MODE' setting

- If set, reports are printed in raw HTML
- Not pretty, but useful for debugging output of rendered template
This commit is contained in:
Oliver Walters
2021-02-06 17:36:22 +11:00
parent dbaa0fc300
commit 30d95e1511
5 changed files with 79 additions and 24 deletions

View File

@ -174,6 +174,13 @@ class InvenTreeSetting(models.Model):
'validator': bool,
},
'REPORT_DEBUG_MODE': {
'name': _('Debug Mode'),
'description': _('Generate reports in debug mode (HTML output)'),
'default': False,
'validator': bool,
},
'REPORT_DEFAULT_PAGE_SIZE': {
'name': _('Page Size'),
'description': _('Default page size for PDF reports'),