brotherton-erpnext/patches/jan_mar_2012/reload_mapper.py
2012-09-24 19:13:42 +05:30

11 lines
487 B
Python

from __future__ import unicode_literals
def execute():
import webnotes
from webnotes.modules import reload_doc
reload_doc('stock', 'DocType Mapper', 'Sales Order-Delivery Note')
reload_doc('accounts', 'DocType Mapper', 'Sales Order-Sales Invoice')
reload_doc('accounts', 'DocType Mapper', 'Delivery Note-Sales Invoice')
webnotes.conn.sql("delete from `tabField Mapper Detail` where parent = 'Sales Order-Delivery Note' and from_field = 'basic_rate' and to_field = 'basic_rate'")