remove get tds button

This commit is contained in:
Anand Doshi 2012-01-19 14:57:23 +05:30
parent 26814e7bad
commit 39eff71864

View File

@ -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')