From 39eff718648c46836f5bb4a63e488caad6df879c Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 19 Jan 2012 14:57:23 +0530 Subject: [PATCH] remove get tds button --- .../patches/jan_mar_2012/remove_get_tds_button.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 erpnext/patches/jan_mar_2012/remove_get_tds_button.py diff --git a/erpnext/patches/jan_mar_2012/remove_get_tds_button.py b/erpnext/patches/jan_mar_2012/remove_get_tds_button.py new file mode 100644 index 0000000000..268c9ef7be --- /dev/null +++ b/erpnext/patches/jan_mar_2012/remove_get_tds_button.py @@ -0,0 +1,14 @@ +def execute(): + """ + Remove One Get TDS button, which is appearing twice in JV + """ + import webnotes + webnotes.conn.sql(""" + DELETE from `tabDocField` + WHERE parent='Journal Voucher' + AND label='Get TDS' + AND fieldtype='Button' + """) + + from webnotes.modules.module_manager import reload_doc + reload_doc('accounts', 'doctype', 'journal_voucher')