brotherton-erpnext/patches/october_2012/remove_old_customer_contact_address.py

8 lines
315 B
Python
Raw Normal View History

def execute():
import webnotes
webnotes.conn.sql("""delete from `tabSearch Criteria` \
where name = 'customer_address_contact'""")
2013-03-06 05:50:56 +00:00
webnotes.reload_doc("core", "doctype", "docfield")
webnotes.reload_doc("core", "doctype", "report")
webnotes.reload_doc('selling', 'report', 'customer_addresses_and_contacts')