2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-14 08:19:54 +00:00

App ready warning (#10938)

* Fix for currency functions

- Prevent database access until after the 'common' app has loaded

* Add decorator to selectively ignore warnings

* Add reference to PR

* Fix variable assignment

* Use functools.wraps

* Add wrapper for loading machine registry

* Move decorator to ready.py

* Add missing code

* Set backup values to match default currency codes

* Bump API version
This commit is contained in:
Oliver
2025-12-04 19:30:14 +11:00
committed by GitHub
parent 2ffc2cb9fc
commit c443b4e9b8
8 changed files with 105 additions and 22 deletions

View File

@@ -1466,7 +1466,7 @@ def schema(
'False' # Disable plugins to ensure they are kep out of schema
)
envs['INVENTREE_CURRENCY_CODES'] = (
'AUD,CNY,EUR,USD' # Default currency codes to ensure they are stable
'AUD,CAD,CNY,EUR,GBP,JPY,NZD,USD' # Default currency codes to ensure they are stable
)
manage(c, cmd, pty=True, env=envs)