Files
schuetz3-erpnext/erpnext/patches/v11_0/rebuild_tree_for_company.py
Ankush Menat c07713b860 style: bulk format code with black
v13 port because otherwise backports will result in conflicts always
2022-03-29 17:29:34 +05:30

8 lines
172 B
Python

import frappe
from frappe.utils.nestedset import rebuild_tree
def execute():
frappe.reload_doc("setup", "doctype", "company")
rebuild_tree("Company", "parent_company")