[fix] sales & purchase order status

This commit is contained in:
Rushabh Mehta
2015-10-02 12:42:48 +05:30
parent 5bcf8315de
commit d10ba853e6
11 changed files with 73 additions and 60 deletions

View File

@@ -0,0 +1,7 @@
import frappe
def execute():
for doctype in ("Sales Order", "Purchase Order"):
for doc in frappe.get_all(doctype, filters={"docstatus": 1}):
doc = frappe.get_doc(doctype, doc.name)
doc.set_status(update=True)