page role series pacth
This commit is contained in:
parent
00f44b3c1c
commit
41526227e3
5
erpnext/patches/may_2012/page_role_series_fix.py
Normal file
5
erpnext/patches/may_2012/page_role_series_fix.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
def execute():
|
||||||
|
import webnotes
|
||||||
|
sr = webnotes.conn.sql("select max(name) from `tabPage Role`")
|
||||||
|
if sr and sr[0][0].startswith('PR'):
|
||||||
|
sql("update tabSeries set current = %s where name = 'PR'", int(sr[0][0][2:]))
|
||||||
@ -342,5 +342,10 @@ patch_list = [
|
|||||||
'patch_file': 'reload_reports',
|
'patch_file': 'reload_reports',
|
||||||
'description': 'reload reports: itemwise sales/delivery details'
|
'description': 'reload reports: itemwise sales/delivery details'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.may_2012',
|
||||||
|
'patch_file': 'page_role_series_fix',
|
||||||
|
'description': 'reset series of page role at max'
|
||||||
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user