mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 09:54:47 +00:00
change cancelled profiles to disabled and show in profile list
This commit is contained in:
8
patches/november_2012/disable_cancelled_profiles.py
Normal file
8
patches/november_2012/disable_cancelled_profiles.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import webnotes
|
||||
def execute():
|
||||
"""
|
||||
in old system, deleted profiles were set as docstatus=2
|
||||
in new system, its either disabled or deleted.
|
||||
"""
|
||||
webnotes.conn.sql("""update `tabProfile` set docstatus=0, enabled=0
|
||||
where docstatus=2""")
|
||||
Reference in New Issue
Block a user