code: def get_address(customer_id, data):
      
      Address = client.model('party.address')
  
      addresses = Address.find(
          [('party', '=', customer_id)],
          fields=[
              'name', 'street', 'street_bis', 'city', 'zip',
              'subdivision.code', 'country.code'
          ]
      )
      for address in addresses:
          if (
                  address['name'] == data['name'] and
                  address['street'] == data['street'] and
                  address['street_bis'] == data['street_bis'] and
                  address['city'] == data['city'] and
                  address['zip'] == data['zip'] and
                  address['subdivision.code'].endswith(data['state']) and
                  address['country.code'] == data['country']):
              return address['id']
docs: Easier to fetch the addresses of customer and then check one by one.
  
      You can get fancy by using some validation mechanism too