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

10 lines
447 B
Python
Raw Normal View History

2012-03-28 06:02:44 +00:00
def execute():
import webnotes
2012-04-02 08:36:46 +00:00
from webnotes.modules import reload_doc
2012-03-28 06:02:44 +00:00
reload_doc('stock', 'DocType Mapper', 'Sales Order-Delivery Note')
2012-03-30 06:59:06 +00:00
reload_doc('accounts', 'DocType Mapper', 'Sales Order-Sales Invoice')
reload_doc('accounts', 'DocType Mapper', 'Delivery Note-Sales Invoice')
2012-03-28 06:08:25 +00:00
webnotes.conn.sql("delete from `tabField Mapper Detail` where parent = 'Sales Order-Delivery Note' and from_field = 'basic_rate' and to_field = 'basic_rate'")