2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

Removed 'customer' app

This commit is contained in:
Oliver
2018-04-19 08:25:32 +10:00
parent f1357cfb7c
commit 433f670e1c
25 changed files with 5 additions and 493 deletions

View File

@ -52,6 +52,6 @@ class EditStockItemForm(forms.ModelForm):
'batch',
'quantity',
'status',
'customer',
#'customer',
'URL',
]

View File

@ -12,7 +12,6 @@ from django.dispatch import receiver
from datetime import datetime
from supplier.models import SupplierPart
from customer.models import Customer
from part.models import Part
from InvenTree.models import InvenTreeTree
from build.models import Build
@ -82,10 +81,11 @@ 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(Customer, on_delete=models.SET_NULL,
related_name='stockitems', blank=True, null=True,
help_text='Item assigned to customer?')
#customer = models.ForeignKey(Customer, on_delete=models.SET_NULL,
# related_name='stockitems', blank=True, null=True,
# help_text='Item assigned to customer?')
# Optional serial number
serial = models.PositiveIntegerField(blank=True, null=True,