Skip to content
Discussion options

You must be logged in to vote

OK,
First:
Configure your currency in the application:
In System Settings / Pricing / Supported Currencies, add your currency code, and delete any codes you don't need.

Then, in "Default Currency" select your currency.

Finally: Fix the code after installation. In my case, I installed it in Docker. Run the command in the terminal:
$ sudo docker exec -it inventree-server bash

apt-get update

apt-get install nano

nano src/backend/InvenTree/common/currency.py

Find "def currency_codes_default_list() -> str:"
Modify "return 'AUD,CAD,CNY,EUR,GBP,JPY,NZD,USD,XXX'"
Note: XXX is the code for your currency.
Save with Ctrl+x
Exit bash:

exit
And restart the service. In my case, with Docker, it's:

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@tristanle22
Comment options

@matmair
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@matmair
Comment options

@lpezo
Comment options

Answer selected by matmair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
pricing Pricing functionality documentation
5 participants
Converted from issue

This discussion was converted from issue #8079 on September 05, 2024 10:58.