mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Remove unused Form
This commit is contained in:
parent
6156fffd1d
commit
8b3a497554
@ -22,42 +22,6 @@ from .models import SupplierPart
|
|||||||
from .models import SupplierPriceBreak
|
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):
|
class CompanyImageForm(HelperForm):
|
||||||
""" Form for uploading a Company image """
|
""" Form for uploading a Company image """
|
||||||
|
|
||||||
|
@ -6,6 +6,8 @@ from rest_framework import serializers
|
|||||||
|
|
||||||
from sql_util.utils import SubqueryCount
|
from sql_util.utils import SubqueryCount
|
||||||
|
|
||||||
|
import djmoney.settings
|
||||||
|
|
||||||
from InvenTree.serializers import InvenTreeModelSerializer
|
from InvenTree.serializers import InvenTreeModelSerializer
|
||||||
from InvenTree.serializers import InvenTreeImageSerializerField
|
from InvenTree.serializers import InvenTreeImageSerializerField
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ from .models import SupplierPriceBreak
|
|||||||
|
|
||||||
from part.models import Part
|
from part.models import Part
|
||||||
|
|
||||||
from .forms import EditCompanyForm, EditManufacturerPartParameterForm
|
from .forms import EditManufacturerPartParameterForm
|
||||||
from .forms import CompanyImageForm
|
from .forms import CompanyImageForm
|
||||||
from .forms import EditManufacturerPartForm
|
from .forms import EditManufacturerPartForm
|
||||||
from .forms import EditSupplierPartForm
|
from .forms import EditSupplierPartForm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user