forked from DGNum/gestioCOF
Fix order_to_inventory et clean js inutile
This commit is contained in:
parent
16d4a89023
commit
f50d5a30cd
2 changed files with 1 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue