2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Some tests for views in order app

This commit is contained in:
Oliver Walters
2019-08-08 23:49:35 +10:00
parent 45d5667ccc
commit b924265c9a
2 changed files with 79 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class PurchaseOrderCreate(AjaxCreateView):
try:
supplier = Company.objects.get(id=supplier_id)
initials['supplier'] = supplier
except Company.DoesNotExist:
except (Company.DoesNotExist, ValueError):
pass
return initials