2013-12-27 12:00:24 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
2014-02-14 10:17:51 +00:00
|
|
|
import frappe
|
2013-12-27 12:00:24 +00:00
|
|
|
|
|
|
|
def execute():
|
2014-02-14 10:17:51 +00:00
|
|
|
from frappe.core.page.user_properties import user_properties
|
2014-03-11 10:45:05 +00:00
|
|
|
for warehouse, user in frappe.db.sql("""select parent, user from `tabWarehouse User`"""):
|
|
|
|
user_properties.add(user, "Warehouse", warehouse)
|
2013-12-27 12:27:28 +00:00
|
|
|
|
2014-02-14 10:17:51 +00:00
|
|
|
frappe.delete_doc("DocType", "Warehouse User")
|
|
|
|
frappe.reload_doc("stock", "doctype", "warehouse")
|