From dfb34deca06c2bcbee693f99425330558e17bce1 Mon Sep 17 00:00:00 2001 From: nabinhait Date: Fri, 1 Jul 2011 16:49:15 +0530 Subject: [PATCH] fixed proper module --- patches/erpnext_structure_cleanup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/patches/erpnext_structure_cleanup.py b/patches/erpnext_structure_cleanup.py index 436f898b2f..ffaee317a6 100644 --- a/patches/erpnext_structure_cleanup.py +++ b/patches/erpnext_structure_cleanup.py @@ -146,6 +146,11 @@ def sync_mapper(): #--------------------------------------- def run_patches(): + # update module + dt_module = {'LC PR Detail':'Stock', 'Landed Cost Detail':'Stock', 'Comment Widget Record': 'Core', 'Tag':'Core', 'Tag Detail': 'Core'} + for d in dt_module.keys(): + sql("update `tabDocType` set module = '%s' where name = '%s'" % (dt_module[d], d)) + sql("update `tabSearch Criteria` set module = 'Selling' where name = 'sales_orderwise_pending_packing_item_summary'") delete_unwanted_doctypes() sql("start transaction") delete_unwanted_pages() @@ -161,9 +166,4 @@ def run_patches(): # landed cost wizard link in stock reload_doc('stock', 'Module Def', 'stock') - # update module - dt_module = {'LC PR Detail':'Stock', 'Landed Cost Detail':'Stock', 'Comment Widget Record': 'Core', 'Tag':'Core', 'Tag Detail': 'Core'} - for d in dt_module.keys(): - sql("update `tabDocType` set module = '%s' where name = '%s'" % (dt_module[d], d)) - sql("commit")