Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add first currency as default #193

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

antoinekh
Copy link

Hello,

As we are not using USD as default currency we want to be able to select the first currency from the ChoiceSet as default as we'd like to avoid changing it every time we create a contract.

With this modification we can used the FIELD_CHOICES and the first element of the list will be proposed as default.

For configuration without FIELD_CHOICES no changed as USD is still the first choice.


    CHOICES = [
        (CURRENCY_USD, 'USD'),
        ('eur', 'EUR'),
        ('chf', 'CHF'),
    ]

@mlebreuil mlebreuil merged commit 1bcea7f into mlebreuil:develop Dec 9, 2024
@mlebreuil
Copy link
Owner

Change will be available in version 2.2.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants