mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
page role series pacth
This commit is contained in:
@@ -2,4 +2,4 @@ def execute():
|
|||||||
import webnotes
|
import webnotes
|
||||||
sr = webnotes.conn.sql("select max(name) from `tabPage Role`")
|
sr = webnotes.conn.sql("select max(name) from `tabPage Role`")
|
||||||
if sr and sr[0][0].startswith('PR'):
|
if sr and sr[0][0].startswith('PR'):
|
||||||
sql("update tabSeries set current = %s where name = 'PR'", int(sr[0][0][2:]))
|
webnotes.conn.sql("update tabSeries set current = %s where name = 'PR'", int(sr[0][0][2:]))
|
||||||
|
|||||||
Reference in New Issue
Block a user