Moving 'supplier' to 'company'

This commit is contained in:
Oliver committed 2018-04-19 09:01:25 +10:00
1 parent 3bb434ae98
commit cef3c664f9
50 files changed
+95 -132

No files matched your search

+2 -3
View File
@@ -11,7 +11,7 @@ from django.dispatch import receiver
from datetime import datetime
from supplier.models import SupplierPart
from company.models import SupplierPart
from part.models import Part
from InvenTree.models import InvenTreeTree
from build.models import Build
@@ -81,9 +81,8 @@ class StockItem(models.Model):
related_name='owned_parts', blank=True, null=True,
help_text='Is this item installed in another item?')
# TODO - Point to a Company object instead
# The StockItem may be assigned to a particular customer
customer = models.ForeignKey('supplier.Supplier', on_delete=models.SET_NULL,
customer = models.ForeignKey('company.Company', on_delete=models.SET_NULL,
related_name='stockitems', blank=True, null=True,
help_text='Item assigned to customer?')