8 lines
313 B
Python
Raw Normal View History

2012-03-28 19:12:36 +05:30
def execute():
import webnotes
webnotes.conn.sql("""DELETE FROM `tabTable Mapper Detail`
WHERE parent='Sales Order-Receivable Voucher'
AND from_table='Sales Order Detail'""")
from webnotes.modules.module_manager import reload_doc
reload_doc('accounts', 'DocType Mapper', 'Sales Order-Receivable Voucher')