permission reloaded for bom replace tool

This commit is contained in:
Nabin Hait
2013-02-01 12:14:45 +05:30
parent c063e653a9
commit ce4178b180
5 changed files with 44 additions and 32 deletions

View File

View File

@@ -0,0 +1,4 @@
def execute():
import webnotes
webnotes.conn.sql("""delete from `tabDocPerm` where parent = 'BOM Replace Tool'""")
webnotes.reload_doc("manufacturing", "doctype", "bom_replace_tool")

View File

@@ -0,0 +1,5 @@
def execute():
import webnotes
from webnotes.model.doc import delete_doc
for mapper in webnotes.conn.sql("""select name from `tabGL Mapper`"""):
delete_doc("GL Mapper", mapper[0])

View File

@@ -160,4 +160,6 @@ patch_list = [
"patches.january_2013.rebuild_tree",
"execute:webnotes.reload_doc('core','doctype','docfield') #2013-01-28",
"patches.january_2013.tabsessions_to_myisam",
"patches.february_2013.remove_gl_mapper",
"patches.february_2013.reload_bom_replace_tool_permission",
]