mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-17 20:23:50 +00:00
Currency options fix (#12343)
- Ensure currency options are loaded dynamically
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user