diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html
index d02cf7c0..e42743cc 100644
--- a/kfet/templates/kfet/kpsul.html
+++ b/kfet/templates/kfet/kpsul.html
@@ -1163,11 +1163,9 @@ $(document).ready(function() {
if (e.shiftKey) {
// Shift+F3 - Withdraw
askWithdraw();
- articleSelect.focus();
} else {
// F3 - Withdraw
askDeposit();
- articleSelect.focus();
}
return false;
case 119:
diff --git a/kfet/views.py b/kfet/views.py
index 7e0c2b5a..e1603dba 100644
--- a/kfet/views.py
+++ b/kfet/views.py
@@ -1689,7 +1689,7 @@ def order_to_inventory(request, pk):
formset = cls_formset(request.POST, initial=initial)
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():
with transaction.atomic():
inventory = Inventory()