[fix] Fixed party update status patch
This commit is contained in:
parent
2dff9275f3
commit
e1433aab30
@ -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)
|
Loading…
x
Reference in New Issue
Block a user