mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 05:39:12 +00:00
15 lines
383 B
Python
15 lines
383 B
Python
import frappe
|
|
|
|
|
|
def execute():
|
|
warehouses = frappe.get_single_value(
|
|
"Manufacturing Settings",
|
|
["default_wip_warehouse", "default_fg_warehouse", "default_scrap_warehouse"],
|
|
as_dict=True,
|
|
)
|
|
|
|
for name, warehouse in warehouses.items():
|
|
if warehouse:
|
|
company = frappe.get_value("Warehouse", warehouse, "company")
|
|
frappe.db.set_value("Company", company, name, warehouse)
|