Skip to content

Commit

Permalink
Merge pull request #34 from hbrunn/7.0-l10n_nl_postcodeapi-fix_private
Browse files Browse the repository at this point in the history
[FIX] don't use private fields, use the API
  • Loading branch information
StefanRijnhart committed Apr 6, 2016
2 parents 5f9ab2b + 17063ad commit a61a886
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 @@ -91,9 +91,9 @@ def on_change_zip_street_number(
if not pc_info or not pc_info._data:
return {}
return {'value': {
'street_name': pc_info._data['street'],
'city': pc_info._data['town'],
'state_id': self.get_province(cr, uid, pc_info._province),
'street_name': pc_info.street,
'city': pc_info.town,
'state_id': self.get_province(cr, uid, pc_info.province),
}}

def fields_view_get(
Expand Down

0 comments on commit a61a886

Please sign in to comment.