reload_doc replaced with sync in patch

This commit is contained in:
Nabin Hait 2012-06-18 11:18:27 +05:30
parent 28447e84c2
commit 34b4d26c1a

View File

@ -1,6 +1,6 @@
def execute():
import webnotes
from webnotes.modules import reload_doc
reload_doc('accounts', 'doctype', 'sales_invoice')
from webnotes.model.sync import sync
sync('accounts', 'sales_invoice')
webnotes.conn.sql("update `tabSales Invoice` set recurring_type = 'Monthly' where ifnull(convert_into_recurring_invoice, 0) = 1")