page role series pacth

This commit is contained in:
Nabin Hait 2012-05-11 11:11:46 +05:30
parent 00f44b3c1c
commit 41526227e3
2 changed files with 10 additions and 0 deletions

View 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:]))

View File

@ -342,5 +342,10 @@ patch_list = [
'patch_file': 'reload_reports',
'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'
},
]