fixed nested set model - group move, deletion
This commit is contained in:
parent
b1a07b1f04
commit
4487e47233
@ -600,4 +600,8 @@ patch_list = [
|
||||
'patch_module': 'patches.september_2012',
|
||||
'patch_file': 'reload_gross_profit',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.september_2012',
|
||||
'patch_file': 'rebuild_trees',
|
||||
},
|
||||
]
|
||||
|
9
erpnext/patches/september_2012/rebuild_trees.py
Normal file
9
erpnext/patches/september_2012/rebuild_trees.py
Normal file
@ -0,0 +1,9 @@
|
||||
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")
|
Loading…
x
Reference in New Issue
Block a user