brotherton-erpnext/patches/december_2012/rebuild_item_group_tree.py

5 lines
131 B
Python

import webnotes
def execute():
from webnotes.utils.nestedset import rebuild_tree
rebuild_tree("Item Group", "parent_item_group")