mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
adding in url
This commit is contained in:
parent
a1fa3315b1
commit
307a097ab4
@ -120,6 +120,9 @@ part_urls = [
|
|||||||
# Create a new part
|
# Create a new part
|
||||||
url(r'^new/?', views.PartCreate.as_view(), name='part-create'),
|
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
|
# Create a new BOM item
|
||||||
url(r'^bom/new/?', views.BomItemCreate.as_view(), name='bom-item-create'),
|
url(r'^bom/new/?', views.BomItemCreate.as_view(), name='bom-item-create'),
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ from .models import PartSellPriceBreak
|
|||||||
|
|
||||||
from common.models import InvenTreeSetting
|
from common.models import InvenTreeSetting
|
||||||
from company.models import SupplierPart
|
from company.models import SupplierPart
|
||||||
|
from common.views import FileManagementFormView
|
||||||
|
|
||||||
import common.settings as inventree_settings
|
import common.settings as inventree_settings
|
||||||
|
|
||||||
@ -718,6 +719,9 @@ class PartCreate(AjaxCreateView):
|
|||||||
return initials
|
return initials
|
||||||
|
|
||||||
|
|
||||||
|
class PartImport(FileManagementFormView):
|
||||||
|
''' Part: Upload file, match to fields and import parts(using multi-Step form) '''
|
||||||
|
|
||||||
class PartNotes(UpdateView):
|
class PartNotes(UpdateView):
|
||||||
""" View for editing the 'notes' field of a Part object.
|
""" View for editing the 'notes' field of a Part object.
|
||||||
Presents a live markdown editor.
|
Presents a live markdown editor.
|
||||||
|
Loading…
Reference in New Issue
Block a user