fix: Don't prompt for Quality Inspection on Return Documents.
diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py
index 90d2930..2ce4159 100644
--- a/erpnext/controllers/stock_controller.py
+++ b/erpnext/controllers/stock_controller.py
@@ -19,7 +19,8 @@
class StockController(AccountsController):
def validate(self):
super(StockController, self).validate()
- self.validate_inspection()
+ if not self.is_return:
+ self.validate_inspection()
self.validate_serialized_batch()
self.validate_customer_provided_item()