Hi devs
Is it possible to change docstatus (submit it) of a transaction via code from other doctype using sort of a method or so.
Regards
Hi devs
Is it possible to change docstatus (submit it) of a transaction via code from other doctype using sort of a method or so.
Regards
Yes.
doc = frappe.get_doc('Sales Invoice', 'SINV-0001')
doc.save()
doc.cancel()
doc.submit()
Hope it helps