2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Form for shipping a SalesOrder

- Returns "False" for now
This commit is contained in:
Oliver Walters
2020-04-24 10:20:56 +10:00
parent b45fec221c
commit 77471cb89c
13 changed files with 155 additions and 14 deletions

View File

@ -125,7 +125,7 @@ class BuildAutoAllocate(AjaxUpdateView):
if confirm is False:
form.errors['confirm'] = [_('Confirm stock allocation')]
form.non_field_errors = _('Check the confirmation box at the bottom of the list')
form.non_field_errors = [_('Check the confirmation box at the bottom of the list')]
else:
build.autoAllocate()
valid = True
@ -159,7 +159,7 @@ class BuildUnallocate(AjaxUpdateView):
if confirm is False:
form.errors['confirm'] = [_('Confirm unallocation of build stock')]
form.non_field_errors = _('Check the confirmation box')
form.non_field_errors = [_('Check the confirmation box')]
else:
build.unallocateStock()
valid = True