Currency options fix (#12343)
- Ensure currency options are loaded dynamically
This commit is contained in:
parent
d4171f2dcf
commit
ae12fa342a
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue