brotherton-erpnext/erpnext/patches/jan_mar_2012/dt_map_fix.py
2012-03-01 18:04:08 +05:30

8 lines
407 B
Python

def execute():
import webnotes
from webnotes.modules.module_manager import reload_doc
webnotes.conn.sql("delete from `tabField Mapper Detail` where from_field = 'transaction_date' and parent in ('Sales Order-Delivery Note', 'Purchase Order-Purchase Receipt')")
reload_doc('stock', 'DocType Mapper', 'Sales Order-Delivery Note')
reload_doc('stock', 'DocType Mapper', 'Purchase Order-Purchase Receipt')