Merge branch 'hotfix'
diff --git a/erpnext/__version__.py b/erpnext/__version__.py
index 2536e8f..f801959 100644
--- a/erpnext/__version__.py
+++ b/erpnext/__version__.py
@@ -1,2 +1,2 @@
from __future__ import unicode_literals
-__version__ = '6.27.20'
+__version__ = '6.27.21'
diff --git a/erpnext/hooks.py b/erpnext/hooks.py
index e1db8be..1eb2203 100644
--- a/erpnext/hooks.py
+++ b/erpnext/hooks.py
@@ -7,7 +7,7 @@
app_description = """ERP made simple"""
app_icon = "icon-th"
app_color = "#e74c3c"
-app_version = "6.27.20"
+app_version = "6.27.21"
app_email = "info@erpnext.com"
app_license = "GNU General Public License (v3)"
source_link = "https://github.com/frappe/erpnext"
diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py
index 158c726..7e008da 100644
--- a/erpnext/selling/doctype/sales_order/sales_order.py
+++ b/erpnext/selling/doctype/sales_order/sales_order.py
@@ -337,8 +337,6 @@
def postprocess(source, doc):
doc.material_request_type = "Purchase"
- so = frappe.get_doc("Sales Order", source_name)
-
doc = get_mapped_doc("Sales Order", source_name, {
"Sales Order": {
"doctype": "Material Request",
@@ -352,7 +350,7 @@
"parent": "sales_order",
"stock_uom": "uom"
}
- }.
+ },
"Sales Order Item": {
"doctype": "Material Request Item",
"field_map": {
diff --git a/setup.py b/setup.py
index 3211bff..a1088bd 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
from pip.req import parse_requirements
-version = "6.27.20"
+version = "6.27.21"
requirements = parse_requirements("requirements.txt", session="")
setup(