mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-10 07:49:29 +00:00
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:
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user