Skip to content

Commit

Permalink
[FIX] l10n_es_toponyms: XML de códigos postales. Closes #161
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Apr 20, 2015
1 parent 60f4e3f commit 1fbf8a8
Show file tree
Hide file tree
Showing 2 changed files with 75,734 additions and 75,734 deletions.
4 changes: 2 additions & 2 deletions l10n_es_toponyms/gen_src/gen_toponyms_geonames.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def filterCity(originalName):
cont)
output.write(' ' * 12 + '<field name="state_id" ref="'
'l10n_es_toponyms.ES%s"/>\n' % row[1][:2])
output.write(' ' * 12 + '<field name="name">%s</field>\n' %
output.write(' ' * 12 + '<field name="city">%s</field>\n' %
filterCity(row[2]).encode('utf-8'))
output.write(' ' * 12 + '<field name="zip">%s</field>\n' % row[1])
output.write(' ' * 12 + '<field name="name">%s</field>\n' % row[1])
output.write(' ' * 12 + '<field name="country_id" ref="base.es"/>\n')
output.write(' ' * 8 + '</record>\n')
data_file.close()
Expand Down
Loading

0 comments on commit 1fbf8a8

Please sign in to comment.