Refactor model helpers into own file (#4927)

* Refactor model helpers into own file to allow helper import when apps not loaded yet

* Import helper functions at module level

* Added missing imports where vscode couldnt help because its no explicit import
This commit is contained in:
Lukas authored and GitHub committed 2023-05-31 09:18:42 +10:00
1 parent a196f443a1
commit 99d122baa9
20 files changed
+343 -316

No files matched your search

@@ -11,7 +11,8 @@ import json
from django.utils.translation import gettext_lazy as _
from InvenTree.helpers import getModelsWithMixin, hash_barcode
from InvenTree.helpers import hash_barcode
from InvenTree.helpers_model import getModelsWithMixin
from InvenTree.models import InvenTreeBarcodeMixin
from plugin import InvenTreePlugin
from plugin.mixins import BarcodeMixin