Merge branch 'hotfix' into reports
diff --git a/patches/1312/__init__.py b/patches/1312/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/patches/1312/__init__.py
diff --git a/patches/1312/p01_delete_old_stock_reports.py b/patches/1312/p01_delete_old_stock_reports.py
new file mode 100644
index 0000000..ffa783f
--- /dev/null
+++ b/patches/1312/p01_delete_old_stock_reports.py
@@ -0,0 +1,11 @@
+# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
+# License: GNU General Public License v3. See license.txt
+
+def execute():
+ import webnotes, os
+
+ webnotes.delete_doc('Page', 'stock-ledger')
+ webnotes.delete_doc('Page', 'stock-ageing')
+
+ os.system("rm -rf app/stock/page/stock_ledger")
+ os.system("rm -rf app/stock/page/stock_ageing")
\ No newline at end of file
diff --git a/patches/patch_list.py b/patches/patch_list.py
index 437f322..0ebe5e2 100644
--- a/patches/patch_list.py
+++ b/patches/patch_list.py
@@ -256,4 +256,5 @@
"patches.1311.p06_fix_report_columns",
"execute:webnotes.delete_doc('DocType', 'Documentation Tool')",
"execute:webnotes.delete_doc('Report', 'Stock Ledger') #2013-11-29",
+ "patches.1312.p01_delete_old_stock_reports",
]
\ No newline at end of file