Add [country] Use Tryton's CDN to download postal codes Remove on 6.4.
Task #048600
This commit is contained in:
parent
75e8e24fd5
commit
7e4744ca43
|
@ -0,0 +1,13 @@
|
|||
diff --git a/trytond/trytond/modules/country/scripts/import_zip.py b/trytond/trytond/modules/country/scripts/import_zip.py
|
||||
index 25bbfc7..4bf3ed7 100755
|
||||
--- a/trytond/trytond/modules/country/scripts/import_zip.py
|
||||
+++ b/trytond/trytond/modules/country/scripts/import_zip.py
|
||||
@@ -36,7 +36,7 @@ def clean(code):
|
||||
|
||||
def fetch(code):
|
||||
sys.stderr.write('Fetching')
|
||||
- url = 'https://download.geonames.org/export/zip/%s.zip' % code
|
||||
+ url = 'https://downloads-cdn.tryton.org/geonames/%s.zip' % code
|
||||
responce = urlopen(url)
|
||||
data = responce.read()
|
||||
with zipfile.ZipFile(BytesIO(data)) as zf:
|
2
series
2
series
|
@ -118,3 +118,5 @@ issue9004.diff # [product] Make product code unique
|
|||
deactivable_product_supplier.diff # [purchase] Allow product supplier to be dactivated [#048267] Remove on 6.0
|
||||
|
||||
issue11077.diff # [trytond] Fill Value of MultiValue with the other default values [#048483] Remove on 6.0
|
||||
|
||||
issue8952.diff # [country] Use Tryton's CDN to download postal codes Remove on 6.4
|
||||
|
|
Loading…
Reference in New Issue