code: def get_customer(code):
      
      Party = client.model('party.party')
      results = Party.find([('code', '=', code)])
      if results:
          return results[0]['id']
docs: Fetch a customer with the code.
      Returns None if the customer is not found.