production order naming series patch
diff --git a/patches/december_2012/production_order_naming_series.py b/patches/december_2012/production_order_naming_series.py
new file mode 100644
index 0000000..df011cb
--- /dev/null
+++ b/patches/december_2012/production_order_naming_series.py
@@ -0,0 +1,15 @@
+import webnotes
+
+def execute():
+	from webnotes.utils import cstr
+	from webnotes.model.code import get_obj
+	
+	fy_list = webnotes.conn.sql("""select name from `tabFiscal Year` 
+		where docstatus < 2 order by year_start_date desc""")
+	series_list = []
+	for fy in fy_list:
+		series_list.append("PRO/" + cstr(fy[0][2:5]) + cstr(fy[0][7:9]) + "/")
+	
+	naming_series_obj = get_obj("Naming Series")
+	naming_series_obj.doc.user_must_always_select = 1
+	naming_series_obj.set_series_for("Production Order", series_list)
\ No newline at end of file
diff --git a/patches/patch_list.py b/patches/patch_list.py
index b97e47b..86bb188 100644
--- a/patches/patch_list.py
+++ b/patches/patch_list.py
@@ -550,4 +550,8 @@
 		'patch_module': 'patches.december_2012',
 		'patch_file': 'stock_entry_cleanup',
 	},
+	{
+		'patch_module': 'patches.december_2012',
+		'patch_file': 'production_order_naming_series',
+	},
 ]
\ No newline at end of file