From 23d19d67849a13cee1318036e3c2ea69df3c7a6a Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 11 Jul 2019 12:56:10 +1000 Subject: [PATCH] Remove old debug messages --- InvenTree/company/views.py | 2 -- InvenTree/part/bom.py | 3 +-- InvenTree/stock/models.py | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/InvenTree/company/views.py b/InvenTree/company/views.py index c3cda22e39..e69f7691cf 100644 --- a/InvenTree/company/views.py +++ b/InvenTree/company/views.py @@ -235,8 +235,6 @@ class PriceBreakCreate(AjaxCreateView): initials = super(AjaxCreateView, self).get_initial() - print("GETTING INITIAL DAtA") - initials['part'] = self.get_part() return initials diff --git a/InvenTree/part/bom.py b/InvenTree/part/bom.py index a96c331a4b..1a37aa92d0 100644 --- a/InvenTree/part/bom.py +++ b/InvenTree/part/bom.py @@ -176,13 +176,12 @@ class BomUploadManager: try: # Excel import casts number-looking-items into floats, which is annoying if item == int(item) and not str(item) == str(int(item)): - print("converting", item, "to", int(item)) data[idx] = int(item) except ValueError: pass + # Skip empty rows if empty: - print("Empty - continuing") continue row = { diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index e992b4eb9f..34dcd00464 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -147,8 +147,6 @@ class StockItem(models.Model): - Quantity must be 1 if the StockItem has a serial number """ - print("Trying to clean the StockItem") - # The 'supplier_part' field must point to the same part! try: if self.supplier_part is not None: