mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
[patches] [fix] replace sync with reload_doc in old patches
This commit is contained in:
@@ -12,8 +12,7 @@ def execute():
|
||||
and ifnull(t1.project_name, '') = ''""")
|
||||
|
||||
webnotes.conn.commit()
|
||||
from webnotes.model.sync import sync
|
||||
sync("buying", "purchase_order")
|
||||
sync("buying", "purchase_request")
|
||||
sync("accounts", "purchase_invoice")
|
||||
webnotes.reload_doc("buying", "doctype", "purchase_order")
|
||||
webnotes.reload_doc("buying", "doctype", "purchase_request")
|
||||
webnotes.reload_doc("accounts", "doctype", "purchase_invoice")
|
||||
webnotes.conn.begin()
|
||||
Reference in New Issue
Block a user