2013-08-05 09:29:54 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2012-10-01 06:05:49 +00:00
|
|
|
from __future__ import unicode_literals
|
2012-09-27 07:35:25 +00:00
|
|
|
def execute():
|
|
|
|
from webnotes.utils.nestedset import rebuild_tree
|
|
|
|
|
|
|
|
rebuild_tree("Item Group", "parent_item_group")
|
|
|
|
rebuild_tree("Customer Group", "parent_customer_group")
|
|
|
|
rebuild_tree("Territory", "parent_territory")
|
|
|
|
rebuild_tree("Account", "parent_account")
|
|
|
|
rebuild_tree("Cost Center", "parent_cost_center")
|
|
|
|
rebuild_tree("Sales Person", "parent_sales_person")
|