[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

@@ -25,5 +25,4 @@ def execute():
webnotes.conn.commit()
webnotes.conn.begin()
import webnotes.model.sync
webnotes.model.sync.sync('setup', 'notification_control')
webnotes.reload_doc('setup', 'doctype', 'notification_control')

View File

@@ -27,5 +27,4 @@ def execute():
doc.save()
webnotes.conn.commit()
webnotes.conn.begin()
import webnotes.model.sync
webnotes.model.sync.sync('core', 'custom_script')
webnotes.reload_doc('core', 'doctype', 'custom_script')

View File

@@ -19,5 +19,4 @@ def execute():
doc.save()
webnotes.conn.commit()
webnotes.conn.begin()
import webnotes.model.sync
webnotes.model.sync.sync('core', 'profile')
webnotes.reload_doc('core', 'doctype', 'profile')

View File

@@ -1,8 +1,7 @@
from __future__ import unicode_literals
def execute():
import webnotes
import webnotes.model.sync
webnotes.model.sync.sync('support', 'communication')
webnotes.reload_doc('support', 'doctype', 'communication')
webnotes.conn.commit()
webnotes.conn.begin()

View File

@@ -27,5 +27,4 @@ def execute():
doc.save()
webnotes.conn.commit()
webnotes.conn.begin()
import webnotes.model.sync
webnotes.model.sync.sync('core', 'print_format')
webnotes.reload_doc('core', 'doctype', 'print_format')