diff --git a/InvenTree/InvenTree/models.py b/InvenTree/InvenTree/models.py index 06bf758b84..a066c2b281 100644 --- a/InvenTree/InvenTree/models.py +++ b/InvenTree/InvenTree/models.py @@ -15,18 +15,25 @@ class Company(models.Model): class Meta: abstract = True - name = models.CharField(max_length=100, unique=True) + name = models.CharField(max_length=100, unique=True, + help_text='Company naem') + description = models.CharField(max_length=500) - website = models.URLField(blank=True) + + website = models.URLField(blank=True, help_text='Company website URL') + address = models.CharField(max_length=200, - blank=True) + blank=True, help_text='Company address') + phone = models.CharField(max_length=50, blank=True) + email = models.EmailField(blank=True) + contact = models.CharField(max_length=100, blank=True) - notes = models.CharField(max_length=500, - blank=True) + + notes = models.TextField(blank=True) def __str__(self): return self.name diff --git a/InvenTree/customer/migrations/0002_auto_20180417_1436.py b/InvenTree/customer/migrations/0002_auto_20180417_1436.py new file mode 100644 index 0000000000..d10f324db6 --- /dev/null +++ b/InvenTree/customer/migrations/0002_auto_20180417_1436.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.12 on 2018-04-17 14:36 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('customer', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='customer', + name='address', + field=models.CharField(blank=True, help_text='Company address', max_length=200), + ), + migrations.AlterField( + model_name='customer', + name='name', + field=models.CharField(help_text='Company naem', max_length=100, unique=True), + ), + migrations.AlterField( + model_name='customer', + name='notes', + field=models.TextField(blank=True), + ), + migrations.AlterField( + model_name='customer', + name='website', + field=models.URLField(blank=True, help_text='Company website URL'), + ), + ] diff --git a/InvenTree/part/templates/part/tabs.html b/InvenTree/part/templates/part/tabs.html index da0b1c9ec2..6c3aff79dd 100644 --- a/InvenTree/part/templates/part/tabs.html +++ b/InvenTree/part/templates/part/tabs.html @@ -1,23 +1,31 @@