mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 15:12:51 +00:00
Merge pull request #14247 from rohitwaghchaure/patch_fixed_for_asset_warehouse
Fixed patch, checked warehouse available in the asset
This commit is contained in:
@@ -13,6 +13,7 @@ def execute():
|
||||
frappe.reload_doc('assets', 'doctype', 'asset_movement')
|
||||
frappe.reload_doc('assets', 'doctype', 'asset_category_account')
|
||||
|
||||
if frappe.db.has_column("Asset", "warehouse"):
|
||||
frappe.db.sql(""" update `tabAsset` ast, `tabWarehouse` wh
|
||||
set ast.location = wh.warehouse_name where ast.warehouse = wh.name""")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user