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:
@ -52,6 +52,6 @@ class EditStockItemForm(forms.ModelForm):
|
||||
'batch',
|
||||
'quantity',
|
||||
'status',
|
||||
'customer',
|
||||
#'customer',
|
||||
'URL',
|
||||
]
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user