Merge pull request #510 from SchrodingersGat/delete-lead-time

Remove lead-time field
This commit is contained in:
Oliver 2019-09-12 22:45:58 +10:00 committed by GitHub
commit afdea818f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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):