brotherton-erpnext/erpnext/patches/jan_mar_2012/sync_ref_db.py

16 lines
445 B
Python
Raw Normal View History

2012-03-22 09:37:28 +00:00
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)
2012-03-30 06:59:06 +00:00
sql("delete from tabDocField where label='Repair Purchase Request' and parent = 'Purchase Request'")