Merge pull request #57571 from mihir-kandoi/move-warehouse-defaults-to-company

refactor: move warehouse defaults from Stock Settings to Company
This commit is contained in:
Mihir Kandoi
2026-07-28 20:28:55 +05:30
committed by GitHub
25 changed files with 254 additions and 161 deletions

View File

@@ -911,8 +911,8 @@ class SellingController(StockController):
if self.get("is_return"):
return
sample_retention_warehouse = frappe.db.get_single_value(
"Stock Settings", "sample_retention_warehouse"
sample_retention_warehouse = frappe.get_cached_value(
"Company", self.company, "sample_retention_warehouse"
)
if not sample_retention_warehouse:
return