mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 03:01:22 +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""")
|
||||||
@@ -671,4 +671,8 @@ patch_list = [
|
|||||||
'patch_module': 'patches.november_2012',
|
'patch_module': 'patches.november_2012',
|
||||||
'patch_file': 'reset_appraisal_permissions',
|
'patch_file': 'reset_appraisal_permissions',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.november_2012',
|
||||||
|
'patch_file': 'disable_cancelled_profiles',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user