brotherton-erpnext/erpnext/patches/jan_mar_2012/remove_get_tds_button.py

15 lines
350 B
Python
Raw Normal View History

2012-01-19 09:27:23 +00:00
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')