Fix order_to_inventory et clean js inutile

This commit is contained in:
Aurélien Delobelle 2016-09-03 22:34:42 +02:00
parent 16d4a89023
commit f50d5a30cd
2 changed files with 1 additions and 3 deletions

View file

@ -1163,11 +1163,9 @@ $(document).ready(function() {
if (e.shiftKey) { if (e.shiftKey) {
// Shift+F3 - Withdraw // Shift+F3 - Withdraw
askWithdraw(); askWithdraw();
articleSelect.focus();
} else { } else {
// F3 - Withdraw // F3 - Withdraw
askDeposit(); askDeposit();
articleSelect.focus();
} }
return false; return false;
case 119: case 119:

View file

@ -1689,7 +1689,7 @@ def order_to_inventory(request, pk):
formset = cls_formset(request.POST, initial=initial) formset = cls_formset(request.POST, initial=initial)
if not request.user.has_perm('kfet.order_to_inventory'): if not request.user.has_perm('kfet.order_to_inventory'):
message.error(request, 'Permission refusée') messages.error(request, 'Permission refusée')
elif formset.is_valid(): elif formset.is_valid():
with transaction.atomic(): with transaction.atomic():
inventory = Inventory() inventory = Inventory()