Is there a way to amend a document via Python?

I wish to cancel a document and then amend it via a Python method is there a method or no.

There’s a method call frappe.copy_doc but I’m not sure it meets your need.

https://github.com/frappe/frappe/blob/176f3b6a153fbac89d9b1511bcd4e43d48028a4c/frappe/__init__.py#L986

2 Likes

I’ll take a look at it