diff --git a/InvenTree/plugins/barcode/inventree.py b/InvenTree/plugins/barcode/inventree.py index 231edfe189..a9125ed8a8 100644 --- a/InvenTree/plugins/barcode/inventree.py +++ b/InvenTree/plugins/barcode/inventree.py @@ -1,3 +1,14 @@ +""" +The InvenTreeBarcodePlugin validates barcodes generated by InvenTree itself. +It can be used as a template for developing third-party barcode plugins. + +The data format is very simple, and maps directly to database objects, +via the "id" parameter. + +Parsing an InvenTree barcode simply involves validating that the +references model objects actually exist in the database. +""" + # -*- coding: utf-8 -*- from . import barcode @@ -68,4 +79,3 @@ class InvenTreeBarcodePlugin(barcode.BarcodePlugin): response['error'] = _('No matching data') return response -