mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 03:30:54 +00:00
Report orientation (#5678)
* Add helper functions for report generation * Add new fields to Report model: - page_size (default = A4) - landscape (default = False) * Add migration for InvenTree reports * Enable landscape printing
This commit is contained in:
@ -50,6 +50,7 @@ import InvenTree.ready
|
||||
import InvenTree.tasks
|
||||
import InvenTree.validators
|
||||
import order.validators
|
||||
import report.helpers
|
||||
from plugin import registry
|
||||
|
||||
logger = logging.getLogger('inventree')
|
||||
@ -1543,11 +1544,7 @@ class InvenTreeSetting(BaseInvenTreeSetting):
|
||||
'name': _('Page Size'),
|
||||
'description': _('Default page size for PDF reports'),
|
||||
'default': 'A4',
|
||||
'choices': [
|
||||
('A4', 'A4'),
|
||||
('Legal', 'Legal'),
|
||||
('Letter', 'Letter')
|
||||
],
|
||||
'choices': report.helpers.report_page_size_options,
|
||||
},
|
||||
|
||||
'REPORT_ENABLE_TEST_REPORT': {
|
||||
|
Reference in New Issue
Block a user