From f50d5a30cd552ee86a9feaf375ed2b80777d7892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sat, 3 Sep 2016 22:34:42 +0200 Subject: [PATCH] Fix order_to_inventory et clean js inutile --- kfet/templates/kfet/kpsul.html | 2 -- kfet/views.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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()