diff --git a/InvenTree/company/forms.py b/InvenTree/company/forms.py index 3fec44cf63..37cfe69ab2 100644 --- a/InvenTree/company/forms.py +++ b/InvenTree/company/forms.py @@ -58,7 +58,7 @@ class EditSupplierPartForm(HelperForm): 'base_cost', 'multiple', 'packaging', - 'lead_time' + # 'lead_time' ] diff --git a/InvenTree/company/migrations/0007_remove_supplierpart_lead_time.py b/InvenTree/company/migrations/0007_remove_supplierpart_lead_time.py new file mode 100644 index 0000000000..5f050d5813 --- /dev/null +++ b/InvenTree/company/migrations/0007_remove_supplierpart_lead_time.py @@ -0,0 +1,17 @@ +# Generated by Django 2.2.5 on 2019-09-12 12:19 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('company', '0006_supplierpricebreak_currency'), + ] + + operations = [ + migrations.RemoveField( + model_name='supplierpart', + name='lead_time', + ), + ] diff --git a/InvenTree/company/models.py b/InvenTree/company/models.py index f62b2f27a2..9b974ce793 100644 --- a/InvenTree/company/models.py +++ b/InvenTree/company/models.py @@ -250,7 +250,8 @@ class SupplierPart(models.Model): multiple = models.PositiveIntegerField(default=1, validators=[MinValueValidator(1)], help_text='Order multiple') - lead_time = models.DurationField(blank=True, null=True) + # TODO - Reimplement lead-time as a charfield with special validation (pattern matching). + # lead_time = models.DurationField(blank=True, null=True) @property def manufacturer_string(self): diff --git a/InvenTree/company/templates/company/partdetail.html b/InvenTree/company/templates/company/partdetail.html index 00e1d03b63..c3dd3a50d6 100644 --- a/InvenTree/company/templates/company/partdetail.html +++ b/InvenTree/company/templates/company/partdetail.html @@ -93,8 +93,8 @@ InvenTree | {{ company.name }} - Parts {{ pb.cost }} {% if pb.currency %}{{ pb.currency.suffix }}{% endif %}