2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +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:
Oliver
2023-10-09 13:25:53 +11:00
committed by GitHub
parent e9e505edd4
commit 6f2dca729d
6 changed files with 158 additions and 8 deletions

View File

@ -15,7 +15,8 @@ Each report has access to a number of context variables by default. The followin
| --- | --- |
| date | Current date, represented as a Python datetime.date object |
| datetime | Current datetime, represented as a Python datetime object |
| default_page_size | InvenTree default page size variable |
| page_size | The specified page size for this report, e.g. `A4` or `Letter landscape` |
| report_template | The report template model instance |
| report_name | Name of the report template |
| report_description | Description of the report template |
| report_revision | Revision of the report template |