Hello !
I need to create custom private Workspace for a user automatically.
Here’s my code to do it
new_doc = frappe.new_doc("Workspace")
new_doc.title = "Private Workspace"
new_doc.label = "Private Workspace"
new_doc.name = "Private Workspace"
new_doc.public = False
new_doc.for_user = USER_MAIL
new_doc.owner = USER_MAIL
new_doc.insert()
The private workspace is succesfully created but the use cannot click on it and it throws the error :
Workspace private-workspace does not exist
Another use had the problem in this post (Workspace error) and he found a workaround to get it working but manually.
I need the workspace to be set up automatically and working without any user intervention.
Someone has an idea ?