From e0a862fbe478e74a83268172320f6e002216ad87 Mon Sep 17 00:00:00 2001 From: shariquerik Date: Wed, 2 Sep 2026 20:58:42 +0530 Subject: [PATCH] docs: keep only what the default company helper's name does not say Greptile: the first line restated the return expression. What is left is the part that is not visible from the code -- the renderer reads the same key, which is what stops the item being filtered against one company and drawn pointing at another. Co-Authored-By: Claude Opus 5 (1M context) --- .../default_company/default_company.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/erpnext/setup/navigation_item_type/default_company/default_company.py b/erpnext/setup/navigation_item_type/default_company/default_company.py index 4667103d93b..fdce0446307 100644 --- a/erpnext/setup/navigation_item_type/default_company/default_company.py +++ b/erpnext/setup/navigation_item_type/default_company/default_company.py @@ -21,12 +21,8 @@ if TYPE_CHECKING: def default_company() -> str | None: - """The company this site works in, or None on a site still in the setup wizard. - - The same key the renderer reads out of `boot.sysdefaults`, which is this function's - output for the whole site -- so the item cannot be filtered against one company and - then drawn pointing at another. - """ + """The same key the renderer reads out of `boot.sysdefaults`, so the item cannot be + filtered against one company and then drawn pointing at another.""" return frappe.defaults.get_defaults().get("company")