diff --git a/patches/march_2013/__init__.py b/patches/march_2013/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/patches/march_2013/update_po_prevdoc_doctype.py b/patches/march_2013/update_po_prevdoc_doctype.py new file mode 100644 index 0000000000..35e7a257b4 --- /dev/null +++ b/patches/march_2013/update_po_prevdoc_doctype.py @@ -0,0 +1,6 @@ +import webnotes +def execute(): + webnotes.conn.sql("""update `tabPurchase Order Item` set prevdoc_doctype = 'Material Request' + where prevdoc_doctype = 'Purchase Request'""") + webnotes.conn.sql("""update `tabSupplier Quotation Item` + set prevdoc_doctype = 'Material Request' where prevdoc_doctype = 'Purchase Request'""") \ No newline at end of file