From 847444724bbc64f13528648635ba07c50eadb2fc Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Wed, 14 Jun 2017 15:51:47 +0530 Subject: [PATCH] remove bracket (#9284) --- erpnext/controllers/sales_and_purchase_return.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/sales_and_purchase_return.py b/erpnext/controllers/sales_and_purchase_return.py index 5412807a56..0074560184 100644 --- a/erpnext/controllers/sales_and_purchase_return.py +++ b/erpnext/controllers/sales_and_purchase_return.py @@ -71,7 +71,7 @@ def validate_returned_items(doc): already_returned_items = get_already_returned_items(doc) # ( not mandatory when it is Purchase Invoice or a Sales Invoice without Update Stock ) - warehouse_mandatory = not ((doc.doctype=="Purchase Invoice" or doc.doctype=="Sales Invoice") and not doc.update_stock)) + warehouse_mandatory = not ((doc.doctype=="Purchase Invoice" or doc.doctype=="Sales Invoice") and not doc.update_stock) items_returned = False for d in doc.get("items"):