From 94bdf9f3c07f6783d6087ae94f3ddb33d5aadb36 Mon Sep 17 00:00:00 2001 From: Mac Avenue Date: Sat, 4 Jul 2026 11:14:04 +0300 Subject: [PATCH] fix:Warehouse erro fixed --- rmax_custom/inter_branch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmax_custom/inter_branch.py b/rmax_custom/inter_branch.py index cdf55b6..b489c8d 100644 --- a/rmax_custom/inter_branch.py +++ b/rmax_custom/inter_branch.py @@ -1042,7 +1042,7 @@ def _retag_se_gl_entries(stock_entry, source_branch: str, target_branch: str) -> fields=["name", "account", "debit", "credit"], ) for row in gl_rows: - warehouse = frappe.db.get_value("Account", row.account, "warehouse") + warehouse = frappe.db.get_value("Warehouse", {"account": row.account}, "name") if not warehouse: continue wh_branch = resolve_warehouse_branch(warehouse)