mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 18:31:16 +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:
1 parent
e9e505edd4
commit
6f2dca729d
6 files changed
+158
-8
No files matched your search
@@ -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 |
|
||||
|
||||
Reference in new issue
Block a user