Currency options fix (#12343)

- Ensure currency options are loaded dynamically
This commit is contained in:
Oliver
2026-07-10 00:21:01 +10:00
committed by GitHub
parent d4171f2dcf
commit ae12fa342a
+3 -1
View File
@@ -100,7 +100,9 @@ def money_kwargs(**kwargs):
kwargs['decimal_places'] = 6
if 'currency_choices' not in kwargs:
kwargs['currency_choices'] = currency_code_mappings()
# Pass the function itself (not the evaluated result) so that the
# available currency options are resolved dynamically.
kwargs['currency_choices'] = currency_code_mappings
if InvenTree.ready.isRunningMigrations():
# During migrations, avoid setting a default currency