Addition of the ShoppingList view to know the item to buy

This commit is contained in:
guillaume-renaud
2016-12-28 19:25:43 +01:00
parent 75af525945
commit 21c05cc779
11 changed files with 280 additions and 18 deletions

View File

@ -88,6 +88,11 @@ class CounterTabsMixin(TabedViewMixin):
'slug': 'last_ops',
'name': _("Last operations"),
})
tab_list.append({
'url': reverse_lazy('stock:items_list', kwargs={'stock_id': self.object.stock.id}),
'slug': 'stock_items_list',
'name': _("Stock items list"),
})
return tab_list
class CounterMain(CounterTabsMixin, CanViewMixin, DetailView, ProcessFormView, FormMixin):