remove debug print

This commit is contained in:
Oliver Walters 2020-05-26 11:42:30 +10:00
parent 47a4ab2ed8
commit 046a00026c

View File

@ -1066,7 +1066,6 @@ class StockItemCreate(AjaxCreateView):
# Could not extract a part object # Could not extract a part object
return None return None
def get_form(self): def get_form(self):
""" Get form for StockItem creation. """ Get form for StockItem creation.
Overrides the default get_form() method to intelligently limit Overrides the default get_form() method to intelligently limit
@ -1081,8 +1080,6 @@ class StockItemCreate(AjaxCreateView):
sn = part.getNextSerialNumber() sn = part.getNextSerialNumber()
form.field_placeholder['serial_numbers'] = _('Next available serial number is') + ' ' + str(sn) form.field_placeholder['serial_numbers'] = _('Next available serial number is') + ' ' + str(sn)
print("Placeholder:", sn)
form.rebuild_layout() form.rebuild_layout()
# Hide the 'part' field (as a valid part is selected) # Hide the 'part' field (as a valid part is selected)