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

8 lines
392 B
Python
Raw Normal View History

2012-03-01 12:34:08 +00:00
def execute():
import webnotes
2012-03-12 09:04:55 +00:00
from webnotes.modules import reload_doc
2012-03-01 12:34:08 +00:00
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')