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) <noreply@anthropic.com>
This commit is contained in:
shariquerik
2026-09-02 20:58:42 +05:30
parent 626d8b322c
commit e0a862fbe4

View File

@@ -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")