Merge pull request #15606 from codingCoffee/abc

fix: make location from warehouse patch
This commit is contained in:
Ameya Shenoy 2018-10-07 13:25:05 +05:30 committed by GitHub
commit 272956980d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ import frappe
from frappe.utils.nestedset import rebuild_tree
def execute():
if not frappe.db.get_value('Asset', {'docstatus': ('<', 2) }, 'name'): return
frappe.reload_doc('assets', 'doctype', 'location')
frappe.reload_doc('stock', 'doctype', 'warehouse')