4_0 patch dir renamed to v4_0

This commit is contained in:
Nabin Hait
2014-05-12 17:44:55 +05:30
parent bbfe2517ea
commit 0c54e2d0d0
20 changed files with 131 additions and 131 deletions

View File

@@ -0,0 +1,13 @@
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
from frappe.core.page.user_properties import user_properties
for warehouse, user in frappe.db.sql("""select parent, user from `tabWarehouse User`"""):
user_properties.add(user, "Warehouse", warehouse)
frappe.delete_doc("DocType", "Warehouse User")
frappe.reload_doc("stock", "doctype", "warehouse")