mirror of
https://github.com/inventree/inventree-app.git
synced 2026-09-09 03:10:14 +00:00
Legacy prune (#850)
* Update minimum supported API version * Remove legacy search support * Remove supportsContactModel * More updates * Final updates * Remove broken ref
This commit is contained in:
@@ -272,14 +272,11 @@ class BarcodeScanHandler extends BarcodeHandler {
|
||||
InvenTreePart.MODEL_TYPE,
|
||||
InvenTreeStockLocation.MODEL_TYPE,
|
||||
InvenTreeCompany.MODEL_TYPE,
|
||||
InvenTreeBuildOrder.MODEL_TYPE,
|
||||
InvenTreePurchaseOrder.MODEL_TYPE,
|
||||
InvenTreeSalesOrder.MODEL_TYPE,
|
||||
];
|
||||
|
||||
if (InvenTreeAPI().supportsOrderBarcodes) {
|
||||
validModels.add(InvenTreeBuildOrder.MODEL_TYPE);
|
||||
validModels.add(InvenTreePurchaseOrder.MODEL_TYPE);
|
||||
validModels.add(InvenTreeSalesOrder.MODEL_TYPE);
|
||||
}
|
||||
|
||||
for (var key in validModels) {
|
||||
if (data.containsKey(key)) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user