Hi,
I am trying to add data As Guest into Doctype but it returns
“Insufficient Permission for Store Clients”
This is the code I have
import frappe
import json
import os
@frappe.whitelist(allow_guest=True)
def sign_up():
try:
user = {
"doctype": "Store Clients",
"email": "sdsd@gmail.com",
"first_name": "aldoooo",
"last_name": "black",
"phone_number": "6173317837",
"company": "dsds"
}
doc = frappe.get_doc(user)
doc.insert()
return {'Title': 'SUCCESS!', 'message': 'The profile has beed create successfully!'}
except Exception as e:
# print e
return {'Title': 'ERROR!', 'message': e}