-
Notifications
You must be signed in to change notification settings - Fork 27
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
subdivision is always required, even when validators.Required unset #196
Comments
@mbehrle what do you think should be the default ?
|
I would prefer in any case 2, because there are really many countries (if not Of course the best way would be to have it configurable by country, so when you Even still better to only display field subdivision, when it is required.
|
With the following change subdivision remains required in My Account / Add Address:
diff --git a/trytond_nereid/party.py b/trytond_nereid/party.py
index bd2b146..0d57f6a 100644
--- a/trytond_nereid/party.py
+++ b/trytond_nereid/party.py
@@ -28,9 +28,12 @@ class AddressForm(Form):
streetbis = TextField(('Street (Bis)'))
zip = TextField(('Post Code'), [validators.Required(), ])
city = TextField(_('City'), [validators.Required(), ])
It is quite unusual to select (or even request) the subdivision in some European countries.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: