diff --git a/erpnext/patches/jan_mar_2012/website/allow_product_delete.py b/erpnext/patches/jan_mar_2012/website/allow_product_delete.py index 54c0447a19..fbef48f11e 100644 --- a/erpnext/patches/jan_mar_2012/website/allow_product_delete.py +++ b/erpnext/patches/jan_mar_2012/website/allow_product_delete.py @@ -4,4 +4,5 @@ def execute(): """ import webnotes 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""")