mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
moved directory structure
This commit is contained in:
6
patches/may_2012/page_role_series_fix.py
Normal file
6
patches/may_2012/page_role_series_fix.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
def execute():
|
||||
import webnotes
|
||||
sr = webnotes.conn.sql("select max(name) from `tabPage Role`")
|
||||
if sr and sr[0][0].startswith('PR'):
|
||||
webnotes.conn.sql("update tabSeries set current = %s where name = 'PR'", int(sr[0][0][2:]))
|
||||
Reference in New Issue
Block a user