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

Expose part parameters to Part label templates

This commit is contained in:
Oliver
2021-07-21 22:05:52 +10:00
parent 20a30f317f
commit afde997cf9
3 changed files with 19 additions and 0 deletions

View File

@ -398,4 +398,5 @@ class PartLabel(LabelTemplate):
'revision': part.revision,
'qr_data': part.format_barcode(brief=True),
'qr_url': part.format_barcode(url=True, request=request),
'parameters': part.parameters_map(),
}