2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-12 18:25:27 +00:00

Add info on buidl report

This commit is contained in:
Oliver Walters
2021-02-16 22:13:11 +11:00
parent 68103f534b
commit b71996c980
4 changed files with 51 additions and 6 deletions

View File

@ -27,12 +27,14 @@ In the example below, a test report template is uploaded and assigned to the par
### Context Variables
The following context variables are made available to the TestReport template for rendering:
In addition to the default report context variables, the following context variables are made available to the TestReport template for rendering:
- **stock_item**: The individual stock item for which this test report is being generated
- **part**: The Part of which the stock_item is an instance
- **results**: A dict of test result objects, where the 'key' for each test result is a shortened version of the test name (see below)
- **result_list**: A list of each test result object
| Variable | Description |
| --- | --- |
| stock_item | The individual stock item for which this test report is being generated |
| part | The Part of which the stock_item is an instance |
| results | A dict of test result objects, where the 'key' for each test result is a shortened version of the test name (see below) |
| result_list | A list of each test result object |
#### Results