mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
[fix] Fixed party update status patch
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
from erpnext.accounts.party_status import update_status
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
for doctype in ('Customer', 'Supplier'):
|
for doctype in ('Customer', 'Supplier'):
|
||||||
|
frappe.reload_doctype(doctype)
|
||||||
for doc in frappe.get_all(doctype):
|
for doc in frappe.get_all(doctype):
|
||||||
doc = frappe.get_doc(doctype, doc.name)
|
doc = frappe.get_doc(doctype, doc.name)
|
||||||
doc.update_status()
|
update_status(doc)
|
||||||
Reference in New Issue
Block a user