brotherton-erpnext/erpnext/patches/mar_2012/so_rv_mapper_fix.py
2012-03-28 19:12:36 +05:30

8 lines
313 B
Python

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