'Create a new user for the supplier if not set in contact'

def update_supplier_contact(self, rfq_supplier, link):

    update_password_link = u''
    if frappe.db.exists(u'User', rfq_supplier.email_id):
        user = frappe.get_doc(u'User', rfq_supplier.email_id)
    else:
        (user, update_password_link) = self.create_user(rfq_supplier, link)
    self.update_contact_of_supplier(rfq_supplier, user)
    return update_password_link
