Skip to content

Commit

Permalink
Merge f21115e into 2e1cef9
Browse files Browse the repository at this point in the history
  • Loading branch information
hbrunn committed Feb 15, 2016
2 parents 2e1cef9 + f21115e commit e92eca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions l10n_nl_postcodeapi/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def on_change_zip_street_number(self):
pc_info = provider_obj.getaddress(postal_code, self.street_number)
if not pc_info or not pc_info._data:
return {}
self.street_name = pc_info._data['street']
self.city = pc_info._data['town']
self.state_id = self.get_province(pc_info._province)
self.street_name = pc_info.street
self.city = pc_info.town
self.state_id = self.get_province(pc_info.province)

@api.model
def fields_view_get(
Expand Down

0 comments on commit e92eca1

Please sign in to comment.