change cancelled profiles to disabled and show in profile list

This commit is contained in:
Anand Doshi 2012-11-22 19:22:38 +05:30
parent c69f02b0ad
commit 01f689bfe5
2 changed files with 12 additions and 0 deletions

View 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""")

View File

@ -671,4 +671,8 @@ patch_list = [
'patch_module': 'patches.november_2012',
'patch_file': 'reset_appraisal_permissions',
},
{
'patch_module': 'patches.november_2012',
'patch_file': 'disable_cancelled_profiles',
},
]