Implement barman prices and improve counter views

This commit is contained in:
Skia
2016-06-01 01:33:20 +02:00
parent 6c48b7c718
commit ffe2aec980
5 changed files with 44 additions and 21 deletions

View File

@ -140,6 +140,7 @@ Cette page vise à documenter la syntaxe *Markdown* utilisée sur le site.
# Counters
Customer(user=skia, account_id="6568j", amount=0).save()
Customer(user=r, account_id="4000", amount=0).save()
p = ProductType(name="Bières bouteilles")
p.save()
barb = Product(name="Barbar", code="BARB", product_type=p, purchase_price="1.50", selling_price="1.7",

View File

@ -269,6 +269,9 @@ class AnonymousUser(AuthAnonymousUser):
return True
return False
def get_display_name(self):
return _("Visitor")
class LockError(Exception):
"""There was a lock error on the object"""
pass