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 %}
- - + +
diff --git a/InvenTree/part/templates/part/supplier.html b/InvenTree/part/templates/part/supplier.html index 30fe9ecc0b..35593f3fdc 100644 --- a/InvenTree/part/templates/part/supplier.html +++ b/InvenTree/part/templates/part/supplier.html @@ -9,6 +9,7 @@
+ {% if 0 %} + {% endif %}
@@ -58,9 +60,12 @@ } }, columns: [ + /* + // TODO - Re-enable the checkbox column for performing actions on multiple supplier parts { checkbox: true, }, + */ { sortable: true, field: 'supplier_name',