From 4df7e53bb899bb9f3b89d3171220f5a4524a6b46 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 27 May 2021 12:55:30 +1000 Subject: [PATCH] Add DEFAULT_CURRENCY option --- InvenTree/InvenTree/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index afa43396f5..718a10b5e5 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -513,6 +513,11 @@ CURRENCIES = CONFIG.get( ], ) +DEFAULT_CURRENCY = get_setting( + 'INVENTREE_DEFAULT_CURRENCY', + CONFIG.get('default_currency', 'USD') +) + # Extract email settings from the config file email_config = CONFIG.get('email', {})