Commit e9cc2554 authored by Calum Mackervoy's avatar Calum Mackervoy
Browse files

bugfix: fix typo

parent ad3cd872
......@@ -10,7 +10,7 @@ class CustomerInvoiceAdmin(DjangoLDPAdmin):
fields = ['urlid', 'is_backlink', 'allow_create_backlink', 'project', 'customer', 'identifier', 'title', 'state',
'batches', 'tvaRate', 'creationDate', 'modificationDate', 'invoicingDate', 'additionalText',
'htAmountView', 'tvaAmountView', 'ttcAmountView']
read_only_fields = ['creationDate', 'modificationDate', 'htAmountView', 'tvaAmountView', 'ttcAmountView']
readonly_fields = ['creationDate', 'modificationDate', 'htAmountView', 'tvaAmountView', 'ttcAmountView']
def htAmountView(self, obj):
return str(obj.htAmmount())
......@@ -26,13 +26,13 @@ class FreelanceInvoiceAdmin(DjangoLDPAdmin):
fields = ['urlid', 'is_backlink', 'allow_create_backlink', 'project', 'user', 'uploadUrl', 'identifier', 'title',
'freelanceFullname', 'state', 'htAmount', 'batches', 'tvaRate', 'creationDate', 'modificationDate',
'invoicingDate']
read_only_fields = ['creationDate', 'modificationDate']
readonly_fields = ['creationDate', 'modificationDate']
class BatchAdmin(DjangoLDPAdmin):
fields = ['urlid', 'is_backlink', 'allow_create_backlink', 'title', 'creationDate', 'modificationDate', 'tasks',
'htAmountView']
read_only_fields = ['creationDate', 'modificationDate', 'htAmountView']
readonly_fields = ['creationDate', 'modificationDate', 'htAmountView']
def htAmountView(self, obj):
return str(obj.htAmmount())
......
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