Saving a document in python with console

Run frappe.db.commit() as the last command. Frappe usually does this automatically but in the console you have to do it yourself.

3 Likes