Merge pull request #52380 from frappe/mergify/bp/version-16-hotfix/pr-52278

This commit is contained in:
mergify[bot]
2026-02-03 15:32:58 +00:00
committed by GitHub
parent a3e8af19a6
commit 66e47f5651
4 changed files with 28 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
import frappe
def execute():
frappe.reload_doc("stock", "doctype", "bin")
frappe.db.sql(
"""
UPDATE `tabBin` b
INNER JOIN `tabWarehouse` w ON b.warehouse = w.name
SET b.company = w.company
WHERE b.company IS NULL OR b.company = ''
"""
)