sync ref db patch
This commit is contained in:
parent
f88326ba3f
commit
191e55f1bc
15
erpnext/patches/jan_mar_2012/sync_ref_db.py
Normal file
15
erpnext/patches/jan_mar_2012/sync_ref_db.py
Normal file
@ -0,0 +1,15 @@
|
||||
def execute():
|
||||
import webnotes
|
||||
sql = webnotes.conn.sql
|
||||
from webnotes.model import delete_doc
|
||||
|
||||
del_rec = {
|
||||
'DocType' : ['Update Series', 'File', 'File Browser Control', 'File Group', 'Tag Detail', 'DocType Property Setter', 'Company Group'],
|
||||
'Page' : ['File Browser']
|
||||
}
|
||||
|
||||
for d in del_rec:
|
||||
for r in del_rec[d]:
|
||||
delete_doc(d, r)
|
||||
|
||||
sql("delete from tabDocField where label='Repair Indent' and parent = 'Indent'")
|
Loading…
x
Reference in New Issue
Block a user