mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Cleanup old forms
This commit is contained in:
parent
54731746d8
commit
59b794f0e5
@ -15,7 +15,7 @@ from InvenTree.fields import DatePickerFormField
|
|||||||
|
|
||||||
from InvenTree.status_codes import StockStatus
|
from InvenTree.status_codes import StockStatus
|
||||||
|
|
||||||
from .models import Build, BuildItem, BuildOrderAttachment
|
from .models import Build, BuildItem
|
||||||
|
|
||||||
from stock.models import StockLocation, StockItem
|
from stock.models import StockLocation, StockItem
|
||||||
|
|
||||||
@ -275,17 +275,3 @@ class EditBuildItemForm(HelperForm):
|
|||||||
'quantity',
|
'quantity',
|
||||||
'install_into',
|
'install_into',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class EditBuildAttachmentForm(HelperForm):
|
|
||||||
"""
|
|
||||||
Form for creating / editing a BuildAttachment object
|
|
||||||
"""
|
|
||||||
|
|
||||||
class Meta:
|
|
||||||
model = BuildOrderAttachment
|
|
||||||
fields = [
|
|
||||||
'build',
|
|
||||||
'attachment',
|
|
||||||
'comment'
|
|
||||||
]
|
|
||||||
|
@ -24,8 +24,8 @@ from common.forms import MatchItemForm
|
|||||||
import part.models
|
import part.models
|
||||||
|
|
||||||
from stock.models import StockLocation
|
from stock.models import StockLocation
|
||||||
from .models import PurchaseOrder, PurchaseOrderLineItem, PurchaseOrderAttachment
|
from .models import PurchaseOrder, PurchaseOrderLineItem
|
||||||
from .models import SalesOrder, SalesOrderLineItem, SalesOrderAttachment
|
from .models import SalesOrder, SalesOrderLineItem
|
||||||
from .models import SalesOrderAllocation
|
from .models import SalesOrderAllocation
|
||||||
|
|
||||||
|
|
||||||
@ -170,30 +170,6 @@ class EditSalesOrderForm(HelperForm):
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class EditPurchaseOrderAttachmentForm(HelperForm):
|
|
||||||
""" Form for editing a PurchaseOrderAttachment object """
|
|
||||||
|
|
||||||
class Meta:
|
|
||||||
model = PurchaseOrderAttachment
|
|
||||||
fields = [
|
|
||||||
'order',
|
|
||||||
'attachment',
|
|
||||||
'comment'
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
class EditSalesOrderAttachmentForm(HelperForm):
|
|
||||||
""" Form for editing a SalesOrderAttachment object """
|
|
||||||
|
|
||||||
class Meta:
|
|
||||||
model = SalesOrderAttachment
|
|
||||||
fields = [
|
|
||||||
'order',
|
|
||||||
'attachment',
|
|
||||||
'comment'
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
class EditPurchaseOrderLineItemForm(HelperForm):
|
class EditPurchaseOrderLineItemForm(HelperForm):
|
||||||
""" Form for editing a PurchaseOrderLineItem object """
|
""" Form for editing a PurchaseOrderLineItem object """
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ from django.utils.translation import ugettext_lazy as _
|
|||||||
|
|
||||||
import common.models
|
import common.models
|
||||||
|
|
||||||
from .models import Part, PartCategory, PartAttachment, PartRelated
|
from .models import Part, PartCategory, PartRelated
|
||||||
from .models import BomItem
|
from .models import BomItem
|
||||||
from .models import PartParameterTemplate, PartParameter
|
from .models import PartParameterTemplate, PartParameter
|
||||||
from .models import PartCategoryParameterTemplate
|
from .models import PartCategoryParameterTemplate
|
||||||
@ -185,18 +185,6 @@ class CreatePartRelatedForm(HelperForm):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class EditPartAttachmentForm(HelperForm):
|
|
||||||
""" Form for editing a PartAttachment object """
|
|
||||||
|
|
||||||
class Meta:
|
|
||||||
model = PartAttachment
|
|
||||||
fields = [
|
|
||||||
'part',
|
|
||||||
'attachment',
|
|
||||||
'comment'
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
class SetPartCategoryForm(forms.Form):
|
class SetPartCategoryForm(forms.Form):
|
||||||
""" Form for setting the category of multiple Part objects """
|
""" Form for setting the category of multiple Part objects """
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user