change cancelled profiles to disabled and show in profile list
This commit is contained in:
parent
c69f02b0ad
commit
01f689bfe5
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_file': 'reset_appraisal_permissions',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.november_2012',
|
||||
'patch_file': 'disable_cancelled_profiles',
|
||||
},
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user