mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-12 12:59:24 +00:00
MAJ translations ; stock acces addition in user tool
This commit is contained in:
@ -170,7 +170,7 @@ class StockItemQuantityForm(forms.BaseForm):
|
||||
shopping_list.stock_owner = self.stock
|
||||
shopping_list.save()
|
||||
for k,t in self.cleaned_data.items():
|
||||
if t is not None:
|
||||
if int(t) > 0 :
|
||||
item_id = int(k[5:])
|
||||
item = StockItem.objects.filter(id=item_id).first()
|
||||
item.tobuy_quantity = t
|
||||
|
Reference in New Issue
Block a user