original_docstring: Create a new user for the supplier if not set in contact
docstring: Create a new user for the supplier if not set in contact
docstring_tokens: Create a new user for the supplier if not set in contact
code: def update_supplier_contact(self, rfq_supplier, link):
  		'''Create a new user for the supplier if not set in contact'''
  		update_password_link, contact = '', ''
  
  		if frappe.db.exists("User", rfq_supplier.email_id):
  			user = frappe.get_doc("User", rfq_supplier.email_id)
  		else:
  			user, update_password_link = self.create_user(rfq_supplier, link)
  
  		contact = self.link_supplier_contact(rfq_supplier, user)
  
  		return update_password_link, contact
code_tokens: def update_supplier_contact ( self , rfq_supplier , link ) : update_password_link , contact = '' , '' if frappe . db . exists ( "User" , rfq_supplier . email_id ) : user = frappe . get_doc ( "User" , rfq_supplier . email_id ) else : user , update_password_link = self . create_user ( rfq_supplier , link ) contact = self . link_supplier_contact ( rfq_supplier , user ) return update_password_link , contact
short_docstring: Create a new user for the supplier if not set in contact
short_docstring_tokens: Create a new user for the supplier if not set in contact
comment: '''Create a new user for the supplier if not set in contact'''