Hi all,
Previously I setup the naming series by having some “/” and found out it is not best to use. So now I want to change it to “-”. I can change the future naming by updating the naming series but I’m wondering is there a way to update the old document from “/” to “-”?
@maxchock actually I’ve checked and it doesn’t matter. open the bench console . list the doctypes using frappe.db.get_list() . you can filter those who has “/” in name . then , for each item of the list use frappe.rename_doc() .
I believe all linked doctypes will rename the linked file . you can try it using one single item .
PS: Rename will only work if Allow Rename is set in the DocType Form. here is the document API