2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-17 17:58:22 +00:00

Fix currency rendering in order tables (#7066)

* Add "currency" to CompanyBriefSerializer

* Fix nav.js bug - potential illegal chars in panel name

* Update CUI tables

* Update PUI tables

* Bump API version
This commit is contained in:
Oliver
2024-04-19 13:59:07 +10:00
committed by GitHub
parent 76e1174986
commit cd53f21120
9 changed files with 52 additions and 17 deletions

View File

@@ -42,7 +42,9 @@ class CompanyBriefSerializer(InvenTreeModelSerializer):
"""Metaclass options."""
model = Company
fields = ['pk', 'url', 'name', 'description', 'image', 'thumbnail']
fields = ['pk', 'url', 'name', 'description', 'image', 'thumbnail', 'currency']
read_only_fields = ['currency']
url = serializers.CharField(source='get_absolute_url', read_only=True)