mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
reload_doc replaced with sync in patch
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
def execute():
|
def execute():
|
||||||
import webnotes
|
import webnotes
|
||||||
from webnotes.modules import reload_doc
|
from webnotes.model.sync import sync
|
||||||
reload_doc('accounts', 'doctype', 'sales_invoice')
|
sync('accounts', 'sales_invoice')
|
||||||
|
|
||||||
webnotes.conn.sql("update `tabSales Invoice` set recurring_type = 'Monthly' where ifnull(convert_into_recurring_invoice, 0) = 1")
|
webnotes.conn.sql("update `tabSales Invoice` set recurring_type = 'Monthly' where ifnull(convert_into_recurring_invoice, 0) = 1")
|
||||||
Reference in New Issue
Block a user