adding in url

This commit is contained in:
Matthias 2021-05-15 00:56:14 +02:00
parent a1fa3315b1
commit 307a097ab4
2 changed files with 7 additions and 0 deletions

View File

@ -120,6 +120,9 @@ part_urls = [
# Create a new part
url(r'^new/?', views.PartCreate.as_view(), name='part-create'),
# Upload a part
url(r'^import/', views.PartImport.as_view(), name='part-upload'),
# Create a new BOM item
url(r'^bom/new/?', views.BomItemCreate.as_view(), name='bom-item-create'),

View File

@ -39,6 +39,7 @@ from .models import PartSellPriceBreak
from common.models import InvenTreeSetting
from company.models import SupplierPart
from common.views import FileManagementFormView
import common.settings as inventree_settings
@ -718,6 +719,9 @@ class PartCreate(AjaxCreateView):
return initials
class PartImport(FileManagementFormView):
''' Part: Upload file, match to fields and import parts(using multi-Step form) '''
class PartNotes(UpdateView):
""" View for editing the 'notes' field of a Part object.
Presents a live markdown editor.