Remove unused Form

This commit is contained in:
Oliver 2021-06-29 23:05:37 +10:00
parent 6156fffd1d
commit 8b3a497554
3 changed files with 3 additions and 37 deletions

View File

@ -22,42 +22,6 @@ from .models import SupplierPart
from .models import SupplierPriceBreak
class EditCompanyForm(HelperForm):
""" Form for editing a Company object """
field_prefix = {
'website': 'fa-globe-asia',
'email': 'fa-at',
'address': 'fa-envelope',
'contact': 'fa-user-tie',
'phone': 'fa-phone',
}
currency = django.forms.ChoiceField(
required=False,
label=_('Currency'),
help_text=_('Default currency used for this company'),
choices=[('', '----------')] + djmoney.settings.CURRENCY_CHOICES,
initial=currency_code_default,
)
class Meta:
model = Company
fields = [
'name',
'description',
'website',
'address',
'currency',
'phone',
'email',
'contact',
'is_supplier',
'is_manufacturer',
'is_customer',
]
class CompanyImageForm(HelperForm):
""" Form for uploading a Company image """

View File

@ -6,6 +6,8 @@ from rest_framework import serializers
from sql_util.utils import SubqueryCount
import djmoney.settings
from InvenTree.serializers import InvenTreeModelSerializer
from InvenTree.serializers import InvenTreeImageSerializerField

View File

@ -30,7 +30,7 @@ from .models import SupplierPriceBreak
from part.models import Part
from .forms import EditCompanyForm, EditManufacturerPartParameterForm
from .forms import EditManufacturerPartParameterForm
from .forms import CompanyImageForm
from .forms import EditManufacturerPartForm
from .forms import EditSupplierPartForm