allow deletion of products

This commit is contained in:
Anand Doshi 2012-02-23 11:31:17 +05:30
parent 9f94275d65
commit bfa58a3516

View File

@ -4,4 +4,5 @@ def execute():
""" """
import webnotes import webnotes
webnotes.conn.sql("""UPDATE `tabDocPerm` SET cancel=1 webnotes.conn.sql("""UPDATE `tabDocPerm` SET cancel=1
WHERE parent='Product' AND role='Website Manager'""") WHERE parent='Product' AND role='Website Manager'
AND permlevel=0""")