mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
added patch
This commit is contained in:
11
erpnext/patches/june_2012/cms2.py
Normal file
11
erpnext/patches/june_2012/cms2.py
Normal file
@@ -0,0 +1,11 @@
|
||||
def execute():
|
||||
import webnotes
|
||||
from webnotes.model.doclist import DocList
|
||||
import webnotes.model.sync
|
||||
|
||||
# sync web page doctype
|
||||
webnotes.model.sync.sync('website', 'web_page')
|
||||
|
||||
# save all web pages to create content
|
||||
for p in webnotes.conn.sql("""select name from `tabWeb Page` where docstatus=0"""):
|
||||
DocList('Web Page', p[0]).save()
|
||||
Reference in New Issue
Block a user