mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Added some doc string
This commit is contained in:
parent
94e400d0e1
commit
f742f32804
@ -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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from . import barcode
|
from . import barcode
|
||||||
@ -68,4 +79,3 @@ class InvenTreeBarcodePlugin(barcode.BarcodePlugin):
|
|||||||
response['error'] = _('No matching data')
|
response['error'] = _('No matching data')
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user