mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
[patches] [fix] replace sync with reload_doc in old patches
This commit is contained in:
@@ -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')
|
||||
@@ -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')
|
||||
@@ -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')
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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')
|
||||
Reference in New Issue
Block a user