From 60db98aafff2b7eb47d36a43338e68dc59086df0 Mon Sep 17 00:00:00 2001 From: Manas Solanki Date: Fri, 18 Nov 2016 14:52:13 +0530 Subject: [PATCH] [Minor] Variable assignment before reference Variable = 'inspection_required_fieldname' --- erpnext/controllers/stock_controller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py index 631685e8df..0c85aa1bba 100644 --- a/erpnext/controllers/stock_controller.py +++ b/erpnext/controllers/stock_controller.py @@ -262,6 +262,7 @@ class StockController(AccountsController): '''Checks if quality inspection is set for Items that require inspection. On submit, throw an exception''' + inspection_required_fieldname = None if self.doctype in ["Purchase Receipt", "Purchase Invoice"]: inspection_required_fieldname = "inspection_required_before_purchase" elif self.doctype in ["Delivery Note", "Sales Invoice"]: