Rename in python code?

Hi everyone,

Is there a way to call the rename method for a doctype via Python code or is it simply doc.rename(newname) ?

Thanks!

Nvm. Found it. :laughing: :blush:

For those who’re looking for the method, it’s:

frappe.rename_doc("DocType", old_name, new_name)