Commit 63217b2e authored by Skia's avatar Skia
Browse files

Improve product display

parent 7fdcb0c8
Pipeline #279 failed with stage
in 3 minutes and 34 seconds
......@@ -75,7 +75,7 @@ class ProductsLookup(RightManagedLookupChannel):
self.model.objects.filter(code__icontains=q)).filter(archived=False)[:50]
def format_item_display(self, item):
return item.name
return "%s (%s)" % (item.name, item.code)
@register('club_accounts')
class ClubAccountLookup(RightManagedLookupChannel):
......
......@@ -113,7 +113,7 @@ class Product(models.Model):
return False
def __str__(self):
return self.name
return "%s (%s)" % (self.name, self.code)
def get_absolute_url(self):
return reverse('counter:product_list')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment