[fix] Fixed party update status patch

This commit is contained in:
Nabin Hait 2016-04-09 16:12:40 +05:30
parent 2dff9275f3
commit e1433aab30

View File

@ -1,7 +1,9 @@
import frappe
from erpnext.accounts.party_status import update_status
def execute():
for doctype in ('Customer', 'Supplier'):
frappe.reload_doctype(doctype)
for doc in frappe.get_all(doctype):
doc = frappe.get_doc(doctype, doc.name)
doc.update_status()
update_status(doc)