mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
allow deletion of products
This commit is contained in:
@@ -5,6 +5,7 @@ import patches.jan_mar_2012.website.cleanups
|
|||||||
import patches.jan_mar_2012.website.domain_list
|
import patches.jan_mar_2012.website.domain_list
|
||||||
import patches.jan_mar_2012.website.file_data_rename
|
import patches.jan_mar_2012.website.file_data_rename
|
||||||
import patches.jan_mar_2012.website.analytics
|
import patches.jan_mar_2012.website.analytics
|
||||||
|
import patches.jan_mar_2012.website.allow_product_delete
|
||||||
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
@@ -15,3 +16,4 @@ def execute():
|
|||||||
patches.jan_mar_2012.website.domain_list.execute()
|
patches.jan_mar_2012.website.domain_list.execute()
|
||||||
patches.jan_mar_2012.website.file_data_rename.execute()
|
patches.jan_mar_2012.website.file_data_rename.execute()
|
||||||
patches.jan_mar_2012.website.analytics.execute()
|
patches.jan_mar_2012.website.analytics.execute()
|
||||||
|
patches.jan_mar_2012.website.allow_product_delete.execute()
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
def execute():
|
||||||
|
"""
|
||||||
|
Allow deletion of products
|
||||||
|
"""
|
||||||
|
import webnotes
|
||||||
|
webnotes.conn.sql("""UPDATE `tabDocPerm` SET cancel=1
|
||||||
|
WHERE parent='Product' AND role='Website Manager'""")
|
||||||
Reference in New Issue
Block a user