2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 13:10:57 +00:00

Added location owner change test case to verify stock item owner in that location is also updated

This commit is contained in:
eeintech
2021-01-12 17:11:46 -05:00
parent 3054c637dd
commit 0a0a47a5e4
2 changed files with 16 additions and 2 deletions

View File

@ -1800,7 +1800,6 @@ class StockItemCreate(AjaxCreateView):
if not stock_ownership_control:
form.fields['owner'].widget = HiddenInput()
else:
print('> Stock ownership is enabled')
try:
location_owner = location.owner
except AttributeError: