2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-10 23:14:13 +00:00

Moving 'supplier' to 'company'

This commit is contained in:
Oliver
2018-04-19 09:01:07 +10:00
parent 3bb434ae98
commit cef3c664f9
50 changed files with 95 additions and 132 deletions

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?')