Moved demo to separate app, moved patches folder

This commit is contained in:
Rushabh Mehta
2013-12-27 17:30:24 +05:30
parent 4ac68952e8
commit c4a0ed63ef
8 changed files with 188 additions and 53 deletions

View File

@@ -0,0 +1,12 @@
# 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 webnotes
def execute():
from webnotes.core.page.user_properties import user_properties
for warehouse, profile in webnotes.conn.sql("""select parent, user from `tabWarehouse User`"""):
user_properties.add(profile, "Warehouse", warehouse)
webnotes.delete_doc("DocType", "Warehouse User")