issue8852.diff [country] Adapt import_zip script to use the right subdivision type per country
This commit is contained in:
parent
c4faa4151a
commit
584bb89bd6
|
@ -0,0 +1,12 @@
|
||||||
|
diff -r a6a39965d1f8 trytond/trytond/modules/country/scripts/import_zip.py
|
||||||
|
--- a/trytond/trytond/modules/country/scripts/import_zip.py Mon Nov 04 12:58:46 2019 +0100
|
||||||
|
+++ b/trytond/trytond/modules/country/scripts/import_zip.py Thu Nov 21 21:22:22 2019 +0100
|
||||||
|
@@ -81,7 +81,7 @@
|
||||||
|
for row in pbar(list(csv.DictReader(
|
||||||
|
f, fieldnames=_fieldnames, delimiter='\t'))):
|
||||||
|
country = get_country(row['country'])
|
||||||
|
- subdivision = get_subdivision(row['country'], row['code1'])
|
||||||
|
+ subdivision = get_subdivision(row['country'], row['code2'])
|
||||||
|
zips.append(
|
||||||
|
Zip(country=country, subdivision=subdivision, zip=row['postal'],
|
||||||
|
city=row['place']))
|
1
series
1
series
|
@ -3,6 +3,7 @@ trytond_test_database.diff # [trytond] avoid errors on upgrades from version 3.4
|
||||||
logging_jsonrpc_exeption.diff # [trytond] logging JSONRPC Exception
|
logging_jsonrpc_exeption.diff # [trytond] logging JSONRPC Exception
|
||||||
account_payment_view.diff # [account_payment]
|
account_payment_view.diff # [account_payment]
|
||||||
|
|
||||||
|
issue8852.diff # [country] Adapt import_zip script to use the right subdivision type per country
|
||||||
|
|
||||||
issue3932.diff # [account] rule account move and account move line by company
|
issue3932.diff # [account] rule account move and account move line by company
|
||||||
account_asset.diff # [account_asset] check if exist asset_lines
|
account_asset.diff # [account_asset] check if exist asset_lines
|
||||||
|
|
Loading…
Reference in New Issue