brotherton-erpnext/erpnext/patches/v7_0/update_party_status.py
2016-04-09 16:12:40 +05:30

9 lines
263 B
Python

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)
update_status(doc)