2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 18:15:40 +00:00

Add "brief" version of QR codes

- Use this to render to labels (as it contains much less information)
This commit is contained in:
Oliver Walters
2020-08-16 13:29:38 +10:00
parent 2f5e3efada
commit 2bbc65cc59
4 changed files with 37 additions and 25 deletions

View File

@ -142,7 +142,7 @@ class StockItemLabel(LabelTemplate):
'serial': item.serial,
'uid': item.uid,
'pk': item.pk,
'qr_data': item.format_short_barcode(),
'qr_data': item.format_barcode(brief=True),
'tests': item.testResultMap()
})