From b5dcaecc37a9b8e2cba81fd1147e0238e02a9675 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 23 Nov 2012 18:14:57 +0530 Subject: [PATCH] fix in remove old unbilled items report --- patches/november_2012/remove_old_unbilled_items_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/november_2012/remove_old_unbilled_items_report.py b/patches/november_2012/remove_old_unbilled_items_report.py index 2b3fbef234..36aa7db00b 100644 --- a/patches/november_2012/remove_old_unbilled_items_report.py +++ b/patches/november_2012/remove_old_unbilled_items_report.py @@ -1,6 +1,7 @@ import webnotes def execute(): - webnotes.conn.sql("""delete from `tabSearch Criteria` where name='Delivery Note Itemwise Pending To Bill'""") + webnotes.delete_doc("Search Criteria", "delivery_note_itemwise_pending_to_bill") + from webnotes.modules import reload_doc reload_doc("accounts", "report", "delivered_items_to_be_billed") \ No newline at end of file