commit | bfa58a35168d52e22387ddd77c1e09f29a4cc07a | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@iwebnotes.com> | Thu Feb 23 11:31:17 2012 +0530 |
committer | Anand Doshi <anand@iwebnotes.com> | Thu Feb 23 11:31:17 2012 +0530 |
tree | 5692cecbd7911463505cd31816b10e0c7ffc9e9e | |
parent | 9f94275d65c54e6d0663cc74295fefde1688f5bc [diff] |
allow deletion of products
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 54c0447..fbef48f 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 @@ """ 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""")