[patches] [fix] replace sync with reload_doc in old patches

This commit is contained in:
Anand Doshi
2013-05-16 15:28:19 +05:30
parent bfc18ea6c4
commit 4221814131
17 changed files with 32 additions and 50 deletions

View File

@@ -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()