Remove lead-time field

This commit is contained in:
Oliver Walters 2019-09-12 22:37:09 +10:00
parent 62c9e85add
commit 91453094aa
3 changed files with 20 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class EditSupplierPartForm(HelperForm):
'base_cost',
'multiple',
'packaging',
'lead_time'
# 'lead_time'
]

View File

@ -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',
),
]

View File

@ -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):