brotherton-erpnext/patches/november_2012/remove_old_unbilled_items_report.py

6 lines
249 B
Python

import webnotes
def execute():
webnotes.conn.sql("""delete from `tabSearch Criteria` where name='Delivery Note Itemwise Pending To Bill'""")
from webnotes.modules import reload_doc
reload_doc("accounts", "report", "delivered_items_to_be_billed")